Class: Web::Narflates::Hidden
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Hidden
constructor
A new instance of Hidden.
- #print(globals, io) ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
393 394 395 |
# File 'lib/web/template.rb', line 393 def name @name end |
Instance Method Details
#print(globals, io) ⇒ Object
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 |