Class: Smartdown::Engine::Interpolator::NullElementInterpolator
- Inherits:
-
Object
- Object
- Smartdown::Engine::Interpolator::NullElementInterpolator
- Defined in:
- lib/smartdown/engine/interpolator.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
Instance Method Summary collapse
- #call(state) ⇒ Object
-
#initialize(element) ⇒ NullElementInterpolator
constructor
A new instance of NullElementInterpolator.
Constructor Details
#initialize(element) ⇒ NullElementInterpolator
Returns a new instance of NullElementInterpolator.
24 25 26 |
# File 'lib/smartdown/engine/interpolator.rb', line 24 def initialize(element) @element = element end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
22 23 24 |
# File 'lib/smartdown/engine/interpolator.rb', line 22 def element @element end |
Instance Method Details
#call(state) ⇒ Object
28 29 30 |
# File 'lib/smartdown/engine/interpolator.rb', line 28 def call(state) element end |