Class: Representable::Binding

Inherits:
Object
  • Object
show all
Includes:
Hooks
Defined in:
lib/representable/binding.rb

Direct Known Subclasses

JSON::JSONBinding, XML::PropertyBinding

Defined Under Namespace

Modules: Extend, Hooks, Object Classes: FragmentNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hooks

#deserialize, #serialize

Constructor Details

#initialize(definition) ⇒ Binding

Returns a new instance of Binding.



9
10
11
# File 'lib/representable/binding.rb', line 9

def initialize(definition)
  @definition = definition
end

Instance Attribute Details

#definitionObject (readonly)

TODO: merge Binding and Definition.



7
8
9
# File 'lib/representable/binding.rb', line 7

def definition
  @definition
end