Method: Representable::HashMethods#representable_attrs

Defined in:
lib/representable/hash_methods.rb

#representable_attrsObject

FIXME: refactor Definition so we can simply add options in #items to existing definition.



4
5
6
7
8
# File 'lib/representable/hash_methods.rb', line 4

def representable_attrs
  attrs = super
  attrs << Definition.new(*definition_opts) if attrs.size == 0
  attrs
end