Class: Web::Narflates::Var
Overview
:nodoc:
Instance Attribute Summary collapse
-
#varname ⇒ Object
readonly
Returns the value of attribute varname.
Instance Method Summary collapse
-
#initialize(varname) ⇒ Var
constructor
A new instance of Var.
- #print(globals, io) ⇒ Object
Constructor Details
#initialize(varname) ⇒ Var
Returns a new instance of Var.
312 313 314 |
# File 'lib/web/template.rb', line 312 def initialize (varname) @varname = varname end |
Instance Attribute Details
#varname ⇒ Object (readonly)
Returns the value of attribute varname.
311 312 313 |
# File 'lib/web/template.rb', line 311 def varname @varname end |
Instance Method Details
#print(globals, io) ⇒ Object
316 317 318 |
# File 'lib/web/template.rb', line 316 def print (globals,io) io << globals.resolve(@varname).value end |