Module: ActiveApi::HasDefinition
- Included in:
- Collection, ComplexType
- Defined in:
- lib/active_api/has_definition.rb
Instance Method Summary collapse
Instance Method Details
#definition ⇒ Object
3 4 5 6 7 |
# File 'lib/active_api/has_definition.rb', line 3 def definition schema.definitions.detect do |definition| definition.definition_name == node.to_s.singularize.to_sym end end |