Method: Moonrope::Base#structure

Defined in:
lib/moonrope/base.rb

#structure(name) ⇒ Moonrope::Structure Also known as: []

Return a structure of the given name

Parameters:

  • name (Symbol)

    the name of the structure

Returns:



161
162
163
# File 'lib/moonrope/base.rb', line 161

def structure(name)
  structures.select { |s| s.name == name }.first
end