Class: Web::Narflates::TextArea
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, rows, cols, virtual, style, id) ⇒ TextArea
constructor
A new instance of TextArea.
- #print(globals, io) ⇒ Object
Constructor Details
#initialize(name, rows, cols, virtual, style, id) ⇒ TextArea
Returns a new instance of TextArea.
434 435 436 437 438 439 440 441 |
# File 'lib/web/template.rb', line 434 def initialize (name,rows,cols,virtual,style,id) @name = name @rows = rows @cols = cols @virtual = virtual @style = style @id = id end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
433 434 435 |
# File 'lib/web/template.rb', line 433 def name @name end |
Instance Method Details
#print(globals, io) ⇒ Object
443 444 445 446 |
# File 'lib/web/template.rb', line 443 def print (globals,io) value = globals.resolve(@name).value io << "<textarea id=\"#{@id}\" name=\"#{@name}\" rows=\"#{@rows}\" cols=\"#{@cols}\" virtual=\"#{@virtual}\" style=\"#{@style}\">#{value}</textarea>" end |