Class: HSQL::Template
- Inherits:
-
Struct
- Object
- Struct
- HSQL::Template
- Defined in:
- lib/hsql/template.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
Instance Method Summary collapse
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input
3 4 5 |
# File 'lib/hsql/template.rb', line 3 def input @input end |
Instance Method Details
#render(hash) ⇒ Object
8 9 10 |
# File 'lib/hsql/template.rb', line 8 def render(hash) Mustache.render(input, hash) end |
#variable_names ⇒ Object
4 5 6 |
# File 'lib/hsql/template.rb', line 4 def variable_names extract_variable_names(ast).uniq end |