Method: Moonrope::Structure#attribute

Defined in:
lib/moonrope/structure.rb

#attribute(name) ⇒ Object

Return details for the given attribute



48
49
50
51
52
# File 'lib/moonrope/structure.rb', line 48

def attribute(name)
  @attributes[:basic].select { |p| p.name == name }.first ||
  @attributes[:full].select { |p| p.name == name }.first ||
  @attributes[:expansion].select { |p| p.name == name }.first
end