module CGI::HtmlExtension
def textarea(name = "", cols = 70, rows = 10) # :yield:
# = textarea("NAME" => "name", "COLS" => 40, "ROWS" => 5)
textarea("name", 40, 5)
# = textarea("NAME" => "name", "COLS" => 70, "ROWS" => 10)
textarea("name")
The body is provided by the passed-in no-argument block
Alternatively, the attributes can be specified as a hash.
columns and +rows+ is the number of rows in the display.
+name+ is the name of the textarea. +cols+ is the number of
Generate a TextArea element, as a String.
def textarea(name = "", cols = 70, rows = 10) # :yield: attributes = if name.kind_of?(String) { "NAME" => name, "COLS" => cols.to_s, "ROWS" => rows.to_s } else name end super(attributes) end