Class: Representable::Binding
- Inherits:
-
Object
- Object
- Representable::Binding
- Includes:
- Hooks
- Defined in:
- lib/representable/binding.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Extend, Hooks, Object Classes: FragmentNotFound
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
TODO: merge Binding and Definition.
Instance Method Summary collapse
-
#initialize(definition) ⇒ Binding
constructor
A new instance of Binding.
Methods included from Hooks
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 |