Module: PhlexForms
- Defined in:
- lib/phlex_forms.rb,
lib/phlex_forms/engine.rb,
lib/phlex_forms/builder.rb,
lib/phlex_forms/version.rb,
lib/phlex_forms/class_merge.rb,
lib/phlex_forms/inline_icons.rb,
lib/phlex_forms/configuration.rb,
lib/phlex_forms/delegated_field.rb
Overview
phlex-forms exposes its components under the Forms:: namespace (Form, Input,
Select, Submit, Label, ...) so that consuming apps can include Forms and call
Form(model:) { |f| ... } as a Phlex::Kit helper. Gem-internal machinery
(configuration, the icon renderer) lives under PhlexForms:: to keep the
Forms:: namespace clean for components only.
Defined Under Namespace
Modules: Builder, ClassMerge, DelegatedField, InlineIcons Classes: Configuration, Engine, Error, FeatureUnavailable
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .configuration ⇒ Object (also: config)
- .configure {|configuration| ... } ⇒ Object
-
.reset_configuration! ⇒ Object
Reset configuration to defaults.
Class Method Details
.configuration ⇒ Object Also known as: config
25 26 27 |
# File 'lib/phlex_forms.rb', line 25 def configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
30 31 32 |
# File 'lib/phlex_forms.rb', line 30 def configure yield(configuration) end |
.reset_configuration! ⇒ Object
Reset configuration to defaults. Intended for test isolation.
35 36 37 |
# File 'lib/phlex_forms.rb', line 35 def reset_configuration! @configuration = Configuration.new end |