Class: Maquina::Application::Components::ComponentBase
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- Maquina::Application::Components::ComponentBase
- Includes:
- Maquina::ApplicationView
- Defined in:
- app/views/maquina/application/components/component_base.rb
Direct Known Subclasses
ActionTextComponent, CheckboxComponent, DateComponent, FileComponent, InputComponent, SelectComponent, TextAreaComponent
Instance Method Summary collapse
-
#initialize(resource:, form:, options: {}) ⇒ ComponentBase
constructor
A new instance of ComponentBase.
Methods included from Maquina::ApplicationView
#attribute_human_name, #button_to, #image_tag, #link_to, #model_human_name, #svg_icon
Constructor Details
#initialize(resource:, form:, options: {}) ⇒ ComponentBase
Returns a new instance of ComponentBase.
9 10 11 12 13 |
# File 'app/views/maquina/application/components/component_base.rb', line 9 def initialize(resource:, form:, options: {}) @resource = resource @form = form @options = end |