Class: ActionView::Helpers::AttributeBuilders::TextArea
- Includes:
- Tags::Placeholderable
- Defined in:
- lib/actionview_attribute_builders/attribute_builders/text_area.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from ActionView::Helpers::AttributeBuilders::Base
Instance Method Details
#html_attributes ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/actionview_attribute_builders/attribute_builders/text_area.rb', line 11 def html_attributes = @options.stringify_keys add_default_name_and_id() if size = .delete("size") ["cols"], ["rows"] = size.split("x") if size.respond_to?(:split) end ["value"] = .delete("value") { value_before_type_cast } return end |