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.
392 393 394 |
# File 'lib/web/template.rb', line 392 def initialize (name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
391 392 393 |
# File 'lib/web/template.rb', line 391 def name @name end |
Instance Method Details
#print(globals, io) ⇒ Object
396 397 398 399 |
# File 'lib/web/template.rb', line 396 def print (globals,io) var = globals.resolve(@name) io << "<input type=\"hidden\" name=\"#{var.canonical_name}\" value=\"#{var.value}\">" end |