Module: JSONModel::Naming::ClassMethods
- Defined in:
- lib/jsonmodel/naming.rb
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jsonmodel/naming.rb', line 6 def name unless @name @name = schema['name'] this = self @name.define_singleton_method(:constantize) do this end end @name end |