Class: EnumArgs::Proxy
- Inherits:
-
Object
- Object
- EnumArgs::Proxy
- Defined in:
- lib/enum_args/proxy.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#enum ⇒ Object
readonly
Returns the value of attribute enum.
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#using ⇒ Object
readonly
Returns the value of attribute using.
Instance Method Summary collapse
-
#initialize(object, method_name, *args, using: {}) ⇒ Proxy
constructor
A new instance of Proxy.
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
#args ⇒ Object (readonly)
Returns the value of attribute args.
18 19 20 |
# File 'lib/enum_args/proxy.rb', line 18 def args @args end |
#enum ⇒ Object
Returns the value of attribute enum.
18 19 20 |
# File 'lib/enum_args/proxy.rb', line 18 def enum @enum end |
#method_name ⇒ Object (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 |
#object ⇒ Object (readonly)
Returns the value of attribute object.
18 19 20 |
# File 'lib/enum_args/proxy.rb', line 18 def object @object end |
#using ⇒ Object (readonly)
Returns the value of attribute using.
18 19 20 |
# File 'lib/enum_args/proxy.rb', line 18 def using @using end |