Sha256: 024c6cc4d5cf9a9aeb4dca0936d08c15e3d3f56b08058d10d4c05b4d25d8e9a1
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 Bytes
Contents
module Form module Component class TextArea < Base def attributes defaults.merge(options).merge({ :name => composed_name, :id => id_attribute }) end def defaults { :cols => 50, :rows => 5 } end def to_html Tag.new(:textarea, value, attributes).to_s end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
form-0.0.1.alpha1 | lib/form/component/text_area.rb |