Module: CLLI::EntityType::ClassMethods
- Includes:
- Pattern
- Defined in:
- lib/clli/entity_type.rb
Overview
These methods will be available in the CLLI
class.
Instance Method Summary collapse
-
#entity_type(code) ⇒ Object
Lookup the entity code description for a parsed
CLLI
string.
Methods included from Pattern
Instance Method Details
#entity_type(code) ⇒ Object
Lookup the entity code description for a parsed CLLI
string.
Params:
code
-
the
CLLI
:entity_code
attribute value.
25 26 27 28 |
# File 'lib/clli/entity_type.rb', line 25 def entity_type(code) @entity_type_data ||= YAMLData.new(%w(clli data entity_types.yml)) @entity_type_data.get(*code_keys(code)) end |