Class: BrainDamage::View::Input::Base
- Inherits:
-
Templateable::FieldTemplateable
- Object
- Templateable::Base
- Templateable::FieldTemplateable
- BrainDamage::View::Input::Base
- Defined in:
- lib/generators/brain_damage/lib/views/inputs/base.rb
Direct Known Subclasses
Autocompletable, Checkbox, CollectionCheckboxes, Default, HierarchyPicker, NestedForm, NestedOnHideable, PolymorphicHybrid
Instance Attribute Summary
Attributes inherited from Templateable::FieldTemplateable
Attributes inherited from Templateable::Base
#inner_html, #options, #template_file
Instance Method Summary collapse
Methods inherited from Templateable::FieldTemplateable
#empty_haml_path, #initialize, #label_guard?, #method_missing, #render, #show?, #show_label?
Methods inherited from Templateable::Base
#indent, #initialize, #method_missing, #render, #render_erb_file, #render_erb_string, #render_template_file
Constructor Details
This class inherits a constructor from BrainDamage::Templateable::FieldTemplateable
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BrainDamage::Templateable::FieldTemplateable
Instance Method Details
#dir ⇒ Object
17 18 19 |
# File 'lib/generators/brain_damage/lib/views/inputs/base.rb', line 17 def dir __dir__ end |
#tag_options(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/generators/brain_damage/lib/views/inputs/base.rb', line 8 def ( = {}) = .merge (@options[:html] || {}) [:name] ||= "name_for_input_tag(:#{name}, prefix)" '{' + .map { |key, value| "#{key}: #{value}" }.join(', ') + '}' end |