Class: ArrayFu::MutatorDetail

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, block) ⇒ MutatorDetail

Returns a new instance of MutatorDetail.



5
6
7
8
# File 'lib/arrayfu/mutator_detail.rb', line 5

def initialize(name,block)
  @name = name
  @block = block
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



3
4
5
# File 'lib/arrayfu/mutator_detail.rb', line 3

def block
  @block
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/arrayfu/mutator_detail.rb', line 3

def name
  @name
end