Class: Curlybars::Node::Output
- Inherits:
-
Struct
- Object
- Struct
- Curlybars::Node::Output
- Defined in:
- lib/curlybars/node/output.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/curlybars/node/output.rb', line 3 def value @value end |
Instance Method Details
#cache_key ⇒ Object
16 17 18 19 20 21 |
# File 'lib/curlybars/node/output.rb', line 16 def cache_key [ value.cache_key, self.class.name ].join("/") end |
#compile ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/curlybars/node/output.rb', line 4 def compile # NOTE: the following is a heredoc string, representing the ruby code fragment # outputted by this node. <<-RUBY buffer.concat(rendering.cached_call(#{value.compile}).to_s) RUBY end |
#validate(branches) ⇒ Object
12 13 14 |
# File 'lib/curlybars/node/output.rb', line 12 def validate(branches) value.validate(branches) end |