Class: EnumArgs::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/enum_args/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, method_name, *args, using: {}) ⇒ Proxy

Returns a new instance of Proxy.



21
22
23
24
25
26
27
# File 'lib/enum_args/proxy.rb', line 21

def initialize(object, method_name, *args, using: {})
  @object = object
  @method_name = method_name
  @args = args
  @using = using
  reset_default_enum
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



18
19
20
# File 'lib/enum_args/proxy.rb', line 18

def args
  @args
end

#enumObject

Returns the value of attribute enum.



18
19
20
# File 'lib/enum_args/proxy.rb', line 18

def enum
  @enum
end

#method_nameObject (readonly)

Returns the value of attribute method_name.



18
19
20
# File 'lib/enum_args/proxy.rb', line 18

def method_name
  @method_name
end

#objectObject (readonly)

Returns the value of attribute object.



18
19
20
# File 'lib/enum_args/proxy.rb', line 18

def object
  @object
end

#usingObject (readonly)

Returns the value of attribute using.



18
19
20
# File 'lib/enum_args/proxy.rb', line 18

def using
  @using
end