Class: Web::Narflates::Password

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) ⇒ 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

#nameObject (readonly)

Returns the value of attribute name.



405
406
407
# File 'lib/web/template.rb', line 405

def name
  @name
end

Instance Method Details



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