Class: Representable::Binding
- Inherits:
-
Object
- Object
- Representable::Binding
- Defined in:
- lib/representable/binding.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Extend, Object Classes: FragmentNotFound
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
TODO: merge Binding and Definition.
Instance Method Summary collapse
- #deserialize(fragment) ⇒ Object
-
#initialize(definition) ⇒ Binding
constructor
A new instance of Binding.
-
#serialize(value) ⇒ Object
Main entry point for rendering/parsing a property object.
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
#definition ⇒ Object (readonly)
TODO: merge Binding and Definition.
7 8 9 |
# File 'lib/representable/binding.rb', line 7 def definition @definition end |
Instance Method Details
#deserialize(fragment) ⇒ Object
18 19 20 |
# File 'lib/representable/binding.rb', line 18 def deserialize(fragment) fragment end |
#serialize(value) ⇒ Object
Main entry point for rendering/parsing a property object.
14 15 16 |
# File 'lib/representable/binding.rb', line 14 def serialize(value) value end |