Method: Context::EnumeratedType.method_missing

Defined in:
lib/Context/EnumeratedType.rb

.method_missing(id) ⇒ Object

Retrieve the value of the ID If the ID is defined, return it’s value.



44
45
46
47
# File 'lib/Context/EnumeratedType.rb', line 44

def method_missing(id)
  name = id.id2name
  self.const_get(name) if self.const_defined?(name)
end