Class: Forme::InputsWrapper::OL
- Inherits:
-
Object
- Object
- Forme::InputsWrapper::OL
- Defined in:
- lib/forme/transformers/inputs_wrapper.rb
Overview
Use an <ol> tag to wrap the inputs.
Registered as :ol.
Instance Method Summary collapse
-
#call(form, opts, &block) ⇒ Object
Wrap the inputs in an <ol> tag.
Instance Method Details
#call(form, opts, &block) ⇒ Object
Wrap the inputs in an <ol> tag
44 45 46 |
# File 'lib/forme/transformers/inputs_wrapper.rb', line 44 def call(form, opts, &block) form.tag(:ol, opts[:attr], &block) end |