Class: Slippers::AnonymousTemplateNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/engine/slippers_nodes.rb

Instance Method Summary collapse

Instance Method Details

#apply_attribute_to_subtemplate(item, template_group) ⇒ Object



54
55
56
# File 'lib/engine/slippers_nodes.rb', line 54

def apply_attribute_to_subtemplate(item, template_group)
  SlippersParser.new.parse(anonymous_template_words.to_s).eval(item, template_group)
end

#eval(object_to_render, template_group) ⇒ Object



50
51
52
# File 'lib/engine/slippers_nodes.rb', line 50

def eval(object_to_render, template_group)
  apply_attribute_to_subtemplate(object_to_render, template_group)
end

#to_sObject



58
59
60
# File 'lib/engine/slippers_nodes.rb', line 58

def to_s
  text_value
end