Class: SimpleForm::Inputs::BlockInput
- Defined in:
- lib/simple_form/inputs/block_input.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute_name, #column, #html_classes, #input_html_classes, #input_html_options, #input_type, #options, #reflection
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ BlockInput
constructor
A new instance of BlockInput.
- #input ⇒ Object
Methods inherited from Base
#additional_classes, disable, enable, #input_class, #input_options
Methods included from SimpleForm::I18nCache
#get_i18n_cache, #i18n_cache, #reset_i18n_cache
Methods included from Components::Readonly
Methods included from Components::Placeholders
#placeholder, #placeholder_text
Methods included from Components::Pattern
Methods included from Components::MinMax
Methods included from Components::Maxlength
Methods included from Components::LabelInput
Methods included from Components::HTML5
#has_required?, #html5, #html5?
Methods included from Components::Hints
Methods included from Components::Errors
Methods included from Helpers::Validators
Constructor Details
#initialize(*args, &block) ⇒ BlockInput
Returns a new instance of BlockInput.
4 5 6 7 |
# File 'lib/simple_form/inputs/block_input.rb', line 4 def initialize(*args, &block) super @block = block end |
Instance Method Details
#input ⇒ Object
9 10 11 |
# File 'lib/simple_form/inputs/block_input.rb', line 9 def input template.capture(&@block) end |