Class: Web::Narflates::Password
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Password
constructor
A new instance of Password.
- #print(globals, io) ⇒ Object
Constructor Details
#initialize(name) ⇒ Password
Returns a new instance of Password.
406 407 408 |
# File 'lib/web/template.rb', line 406 def initialize (name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
405 406 407 |
# File 'lib/web/template.rb', line 405 def name @name end |
Instance Method Details
#print(globals, io) ⇒ Object
410 411 412 413 |
# File 'lib/web/template.rb', line 410 def print (globals,io) var = globals.resolve(@name) io << "<input type=\"password\" name=\"#{var.canonical_name}\" value=\"#{var.value}\">" end |