Module: Props::Extensions::Array::Member

Included in:
Array
Defined in:
lib/props_template/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#member_at(index) ⇒ Object



5
6
7
# File 'lib/props_template/core_ext.rb', line 5

def member_at(index)
  at(index)
end

#member_by(attribute, value) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/props_template/core_ext.rb', line 9

def member_by(attribute, value)
  raise NotImplementedError, "Implement member_by(attr, value) in your own delegate"
end