Module: HungryForm
- Defined in:
- lib/hungryform.rb,
lib/hungryform/form.rb,
lib/hungryform/version.rb,
lib/hungryform/elements.rb,
lib/hungryform/resolver.rb,
lib/hungryform/validator.rb,
lib/hungryform/exceptions.rb,
lib/hungryform/configuration.rb,
lib/hungryform/elements/html.rb,
lib/hungryform/elements/page.rb,
lib/hungryform/elements/group.rb,
lib/hungryform/elements/text_area.rb,
lib/hungryform/elements/base/group.rb,
lib/hungryform/elements/text_field.rb,
lib/hungryform/elements/radio_group.rb,
lib/hungryform/elements/base/element.rb,
lib/hungryform/elements/select_field.rb,
lib/hungryform/elements/base/hashable.rb,
lib/hungryform/elements/checkbox_field.rb,
lib/hungryform/elements/base/active_element.rb,
lib/hungryform/elements/base/options_element.rb
Defined Under Namespace
Modules: Elements, Validator
Classes: Configuration, Form, Resolver
Constant Summary
collapse
- VERSION =
"0.0.11"
- HungryFormException =
Class.new(StandardError)
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
5
6
7
|
# File 'lib/hungryform.rb', line 5
def configuration
@configuration ||= Configuration.new
end
|
Class Method Details
9
10
11
|
# File 'lib/hungryform.rb', line 9
def configure
yield(configuration)
end
|
.reset_config ⇒ Object
13
14
15
|
# File 'lib/hungryform.rb', line 13
def reset_config
@configuration = Configuration.new
end
|