Module: Representable

Included in:
Decorator
Defined in:
lib/representable.rb,
lib/representable/xml.rb,
lib/representable/hash.rb,
lib/representable/json.rb,
lib/representable/yaml.rb,
lib/representable/config.rb,
lib/representable/mapper.rb,
lib/representable/binding.rb,
lib/representable/version.rb,
lib/representable/autoload.rb,
lib/representable/coercion.rb,
lib/representable/pipeline.rb,
lib/representable/decorator.rb,
lib/representable/definition.rb,
lib/representable/serializer.rb,
lib/representable/declarative.rb,
lib/representable/inheritable.rb,
lib/representable/deserializer.rb,
lib/representable/hash_methods.rb,
lib/representable/for_collection.rb,
lib/representable/parse_strategies.rb,
lib/representable/hash/allow_symbols.rb,
lib/representable/bindings/xml_bindings.rb,
lib/representable/bindings/hash_bindings.rb,
lib/representable/bindings/yaml_bindings.rb

Defined Under Namespace

Modules: ClassInclusions, ClassMethods, Cloneable, Coercion, Declarative, Feature, ForCollection, Hash, HashMethods, Inheritable, JSON, ModuleExtensions, Represent, XML, YAML Classes: Binding, CollectionDeserializer, Config, Decorator, Definition, DeserializeError, Mapper, ObjectDeserializer, ObjectSerializer, ParseStrategy, Pipeline

Constant Summary collapse

VERSION =
"2.0.4"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#representable_attrs=(value) ⇒ Object

Sets the attribute representable_attrs

Parameters:

  • value

    the value to set the attribute representable_attrs to.



16
17
18
# File 'lib/representable.rb', line 16

def representable_attrs=(value)
  @representable_attrs = value
end

Class Method Details

.included(base) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/representable.rb', line 18

def self.included(base)
  base.class_eval do
    extend Declarative
    extend ClassInclusions, ModuleExtensions
    extend ClassMethods
    extend Feature
    extend ForCollection
    extend Represent
    # register_feature Representable # Representable gets included automatically when creating inline representer.
  end
end