Class: Disposable::Twin::Decorator::Definition
- Inherits:
-
Representable::Definition
- Object
- Representable::Definition
- Disposable::Twin::Decorator::Definition
- Defined in:
- lib/disposable/twin/representer.rb
Overview
Overrides representable’s Definition class so we can add semantics in our representers.
Instance Method Summary collapse
Instance Method Details
#dynamic_options ⇒ Object
9 10 11 |
# File 'lib/disposable/twin/representer.rb', line 9 def super + [:twin] end |
#twin_class ⇒ Object
13 14 15 |
# File 'lib/disposable/twin/representer.rb', line 13 def twin_class self[:twin].evaluate(nil) # FIXME: do we support the :twin option, and should it be wrapped? end |