Class: Web::Narflates::Var

Inherits:
Object show all
Defined in:
lib/web/template.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#varnameObject (readonly)

Returns the value of attribute varname.



311
312
313
# File 'lib/web/template.rb', line 311

def varname
  @varname
end

Instance Method Details



316
317
318
# File 'lib/web/template.rb', line 316

def print (globals,io) 
	io << globals.resolve(@varname).value
end