Class: DIY::MethodDef
- Inherits:
-
Object
- Object
- DIY::MethodDef
- Defined in:
- lib/diy.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#attach ⇒ Object
Returns the value of attribute attach.
-
#method ⇒ Object
Returns the value of attribute method.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(opts) ⇒ MethodDef
constructor
A new instance of MethodDef.
Constructor Details
#initialize(opts) ⇒ MethodDef
Returns a new instance of MethodDef.
299 300 301 |
# File 'lib/diy.rb', line 299 def initialize(opts) @name, @object, @method, @attach = opts[:name], opts[:object], opts[:method], opts[:attach] end |
Instance Attribute Details
#attach ⇒ Object
Returns the value of attribute attach.
297 298 299 |
# File 'lib/diy.rb', line 297 def attach @attach end |
#method ⇒ Object
Returns the value of attribute method.
297 298 299 |
# File 'lib/diy.rb', line 297 def method @method end |
#name ⇒ Object
Returns the value of attribute name.
297 298 299 |
# File 'lib/diy.rb', line 297 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
297 298 299 |
# File 'lib/diy.rb', line 297 def object @object end |