Class: Liquid::Echo
Defined Under Namespace
Classes: ParseTreeVisitor
Instance Attribute Summary collapse
-
#variable ⇒ Object
readonly
Returns the value of attribute variable.
Attributes inherited from Tag
#line_number, #nodelist, #parse_context, #tag_name
Instance Method Summary collapse
-
#initialize(tag_name, markup, parse_context) ⇒ Echo
constructor
A new instance of Echo.
- #render(context) ⇒ Object
Methods inherited from Tag
#blank?, disable_tags, #name, parse, #parse, #raw, #render_to_output_buffer
Methods included from ParserSwitching
#parse_with_selected_parser, #strict_parse_with_error_mode_fallback
Constructor Details
Instance Attribute Details
#variable ⇒ Object (readonly)
Returns the value of attribute variable.
22 23 24 |
# File 'lib/liquid/tags/echo.rb', line 22 def variable @variable end |
Instance Method Details
#render(context) ⇒ Object
29 30 31 |
# File 'lib/liquid/tags/echo.rb', line 29 def render(context) @variable.render_to_output_buffer(context, +'') end |