Class: Brock::TextField

Inherits:
Field
  • Object
show all
Defined in:
lib/brock/fields/text_field.rb

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

.typeObject



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