Class: Curlybars::Node::Item
- Inherits:
-
Struct
- Object
- Struct
- Curlybars::Node::Item
- Defined in:
- lib/curlybars/node/item.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
Instance Method Summary collapse
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item
3 4 5 |
# File 'lib/curlybars/node/item.rb', line 3 def item @item end |
Instance Method Details
#cache_key ⇒ Object
23 24 25 26 27 28 |
# File 'lib/curlybars/node/item.rb', line 23 def cache_key [ item.cache_key, self.class.name ].join("/") end |
#compile ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/curlybars/node/item.rb', line 4 def compile # NOTE: the following is a heredoc string, representing the ruby code fragment # outputted by this node. <<-RUBY ::Module.new do def self.exec(contexts, rendering, variables, buffer) rendering.check_timeout! #{item.compile} end end.exec(contexts, rendering, variables, buffer) RUBY end |