Class: Web::Narflates::TextArea

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, 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

#nameObject (readonly)

Returns the value of attribute name.



433
434
435
# File 'lib/web/template.rb', line 433

def name
  @name
end

Instance Method Details



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