Class: DIY::MethodDef

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attachObject

Returns the value of attribute attach.



297
298
299
# File 'lib/diy.rb', line 297

def attach
  @attach
end

#methodObject

Returns the value of attribute method.



297
298
299
# File 'lib/diy.rb', line 297

def method
  @method
end

#nameObject

Returns the value of attribute name.



297
298
299
# File 'lib/diy.rb', line 297

def name
  @name
end

#objectObject

Returns the value of attribute object.



297
298
299
# File 'lib/diy.rb', line 297

def object
  @object
end