Class: Web::Narflates::Hidden

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Hidden

Returns a new instance of Hidden.



394
395
396
# File 'lib/web/template.rb', line 394

def initialize (name)
	@name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



393
394
395
# File 'lib/web/template.rb', line 393

def name
  @name
end

Instance Method Details



398
399
400
401
# File 'lib/web/template.rb', line 398

def print (globals,io) 
	var = globals.resolve(@name)
	io << "<input type=\"hidden\" name=\"#{var.canonical_name}\" value=\"#{var.value}\">"
end