Class: Brock::TextField
Instance Attribute Summary
Attributes inherited from Field
#default, #description, #label, #name, #type
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Field
detect, #initialize, new_from_params, #to_html
Constructor Details
This class inherits a constructor from Brock::Field
Class Method Details
.type ⇒ Object
6 7 8 |
# File 'lib/brock/fields/text_field.rb', line 6 def self.type :text end |
Instance Method Details
#parse_param(value) ⇒ Object
10 11 12 |
# File 'lib/brock/fields/text_field.rb', line 10 def parse_param(value) value.to_s end |