Class: AdvAccessor::Reader

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/adv_accessor/mapping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block.



15
16
17
# File 'lib/adv_accessor/mapping.rb', line 15

def block
  @block
end

#nameObject

Returns the value of attribute name.



15
16
17
# File 'lib/adv_accessor/mapping.rb', line 15

def name
  @name
end

Instance Method Details

#match?(ops) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/adv_accessor/mapping.rb', line 17

def match?(ops)
  name == ops[:name]
end