Class: Formula::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/formula/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_optionsHash

Returns:

  • (Hash)


11
12
13
# File 'lib/formula/config.rb', line 11

def area_options
  @area_options
end

#association_classString

Returns:

  • (String)


45
46
47
# File 'lib/formula/config.rb', line 45

def association_class
  @association_class
end

#association_error_classString

Returns:

  • (String)


63
64
65
# File 'lib/formula/config.rb', line 63

def association_error_class
  @association_error_class
end

#association_tagSymbol

Returns:

  • (Symbol)


93
94
95
# File 'lib/formula/config.rb', line 93

def association_tag
  @association_tag
end

#block_classString

Returns:

  • (String)


33
34
35
# File 'lib/formula/config.rb', line 33

def block_class
  @block_class
end

#block_error_classString

Returns:

  • (String)


51
52
53
# File 'lib/formula/config.rb', line 51

def block_error_class
  @block_error_class
end

#block_tagSymbol

Returns:

  • (Symbol)


81
82
83
# File 'lib/formula/config.rb', line 81

def block_tag
  @block_tag
end

#box_optionsHash

Returns:

  • (Hash)


7
8
9
# File 'lib/formula/config.rb', line 7

def box_options
  @box_options
end

#default_asSymbol

Returns:

  • (Symbol)


111
112
113
# File 'lib/formula/config.rb', line 111

def default_as
  @default_as
end

#error_classString

Returns:

  • (String)


69
70
71
# File 'lib/formula/config.rb', line 69

def error_class
  @error_class
end

#error_tagSymbol

Returns:

  • (Symbol)


99
100
101
# File 'lib/formula/config.rb', line 99

def error_tag
  @error_tag
end

#field_optionsHash

Returns:

  • (Hash)


19
20
21
# File 'lib/formula/config.rb', line 19

def field_options
  @field_options
end

#file_optionsHash

Returns:

  • (Hash)


15
16
17
# File 'lib/formula/config.rb', line 15

def file_options
  @file_options
end

#hint_classString

Returns:

  • (String)


75
76
77
# File 'lib/formula/config.rb', line 75

def hint_class
  @hint_class
end

#hint_tagSymbol

Returns:

  • (Symbol)


105
106
107
# File 'lib/formula/config.rb', line 105

def hint_tag
  @hint_tag
end

#input_classString

Returns:

  • (String)


39
40
41
# File 'lib/formula/config.rb', line 39

def input_class
  @input_class
end

#input_error_classString

Returns:

  • (String)


57
58
59
# File 'lib/formula/config.rb', line 57

def input_error_class
  @input_error_class
end

#input_tagSymbol

Returns:

  • (Symbol)


87
88
89
# File 'lib/formula/config.rb', line 87

def input_tag
  @input_tag
end

#label_optionsHash

Returns:

  • (Hash)


27
28
29
# File 'lib/formula/config.rb', line 27

def label_options
  @label_options
end

#select_optionsHash

Returns:

  • (Hash)


23
24
25
# File 'lib/formula/config.rb', line 23

def select_options
  @select_options
end