Class: EnumArgs::Proxy
- Inherits:
-
Object
- Object
- EnumArgs::Proxy
- Defined in:
- lib/enum_args/proxy.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#object ⇒ Object
Returns the value of attribute object.
-
#using ⇒ Object
Returns the value of attribute using.
Instance Method Summary collapse
-
#initialize(object, method_name, *args, using: {}, cache: nil) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(object, method_name, *args, using: {}, cache: nil) ⇒ Proxy
Returns a new instance of Proxy.
15 16 17 18 19 20 21 |
# File 'lib/enum_args/proxy.rb', line 15 def initialize(object, method_name, *args, using: {}, cache: nil) self.using = using @object = object @method_name = method_name @args = args @cache = cache || CREATE_ENUM end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
12 13 14 |
# File 'lib/enum_args/proxy.rb', line 12 def args @args end |
#cache ⇒ Object
Returns the value of attribute cache.
12 13 14 |
# File 'lib/enum_args/proxy.rb', line 12 def cache @cache end |
#method_name ⇒ Object
Returns the value of attribute method_name.
12 13 14 |
# File 'lib/enum_args/proxy.rb', line 12 def method_name @method_name end |
#object ⇒ Object
Returns the value of attribute object.
12 13 14 |
# File 'lib/enum_args/proxy.rb', line 12 def object @object end |
#using ⇒ Object
Returns the value of attribute using.
13 14 15 |
# File 'lib/enum_args/proxy.rb', line 13 def using @using end |