Class: Sablon::Statement::Image
- Inherits:
-
Struct
- Object
- Struct
- Sablon::Statement::Image
- Defined in:
- lib/sablon/operations.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#image_reference ⇒ Object
Returns the value of attribute image_reference.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
124 125 126 |
# File 'lib/sablon/operations.rb', line 124 def block @block end |
#image_reference ⇒ Object
Returns the value of attribute image_reference
124 125 126 |
# File 'lib/sablon/operations.rb', line 124 def image_reference @image_reference end |
Instance Method Details
#evaluate(env) ⇒ Object
125 126 127 128 129 |
# File 'lib/sablon/operations.rb', line 125 def evaluate(env) image = image_reference.evaluate(env.context) set_local_rid(env, image) if image block.replace(image) end |