Class: Formula::Config
- Inherits:
-
Object
- Object
- Formula::Config
- Defined in:
- lib/formula/config.rb
Instance Attribute Summary collapse
- #area_options ⇒ Hash
- #association_class ⇒ String
- #association_error_class ⇒ String
- #association_tag ⇒ Symbol
- #block_class ⇒ String
- #block_error_class ⇒ String
- #block_tag ⇒ Symbol
- #box_options ⇒ Hash
- #default_as ⇒ Symbol
- #error_class ⇒ String
- #error_tag ⇒ Symbol
- #field_options ⇒ Hash
- #file_options ⇒ Hash
- #hint_class ⇒ String
- #hint_tag ⇒ Symbol
- #input_class ⇒ String
- #input_error_class ⇒ String
- #input_tag ⇒ Symbol
- #label_options ⇒ Hash
- #select_options ⇒ Hash
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/formula/config.rb', line 113 def initialize @box_options = {} @area_options = {} @file_options = {} @field_options = {} @select_options = {} @label_options = {} @block_class = 'block' @input_class = 'input' @association_class = 'association' @block_error_class = 'errors' @input_error_class = false @association_error_class = false @error_class = 'error' @hint_class = 'hint' @block_tag = :div @input_tag = :div @association_tag = :div @error_tag = :div @hint_tag = :div @default_as = :string end |
Instance Attribute Details
#area_options ⇒ Hash
11 12 13 |
# File 'lib/formula/config.rb', line 11 def @area_options end |
#association_class ⇒ String
45 46 47 |
# File 'lib/formula/config.rb', line 45 def association_class @association_class end |
#association_error_class ⇒ String
63 64 65 |
# File 'lib/formula/config.rb', line 63 def association_error_class @association_error_class end |
#association_tag ⇒ Symbol
93 94 95 |
# File 'lib/formula/config.rb', line 93 def association_tag @association_tag end |
#block_class ⇒ String
33 34 35 |
# File 'lib/formula/config.rb', line 33 def block_class @block_class end |
#block_error_class ⇒ String
51 52 53 |
# File 'lib/formula/config.rb', line 51 def block_error_class @block_error_class end |
#block_tag ⇒ Symbol
81 82 83 |
# File 'lib/formula/config.rb', line 81 def block_tag @block_tag end |
#box_options ⇒ Hash
7 8 9 |
# File 'lib/formula/config.rb', line 7 def @box_options end |
#default_as ⇒ Symbol
111 112 113 |
# File 'lib/formula/config.rb', line 111 def default_as @default_as end |
#error_class ⇒ String
69 70 71 |
# File 'lib/formula/config.rb', line 69 def error_class @error_class end |
#error_tag ⇒ Symbol
99 100 101 |
# File 'lib/formula/config.rb', line 99 def error_tag @error_tag end |
#field_options ⇒ Hash
19 20 21 |
# File 'lib/formula/config.rb', line 19 def @field_options end |
#file_options ⇒ Hash
15 16 17 |
# File 'lib/formula/config.rb', line 15 def @file_options end |
#hint_class ⇒ String
75 76 77 |
# File 'lib/formula/config.rb', line 75 def hint_class @hint_class end |
#hint_tag ⇒ Symbol
105 106 107 |
# File 'lib/formula/config.rb', line 105 def hint_tag @hint_tag end |
#input_class ⇒ String
39 40 41 |
# File 'lib/formula/config.rb', line 39 def input_class @input_class end |
#input_error_class ⇒ String
57 58 59 |
# File 'lib/formula/config.rb', line 57 def input_error_class @input_error_class end |
#input_tag ⇒ Symbol
87 88 89 |
# File 'lib/formula/config.rb', line 87 def input_tag @input_tag end |
#label_options ⇒ Hash
27 28 29 |
# File 'lib/formula/config.rb', line 27 def @label_options end |
#select_options ⇒ Hash
23 24 25 |
# File 'lib/formula/config.rb', line 23 def @select_options end |