Class: Maquina::Application::Components::ComponentBase

Inherits:
Phlex::HTML
  • Object
show all
Includes:
Maquina::ApplicationView
Defined in:
app/views/maquina/application/components/component_base.rb

Instance Method Summary collapse

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 = options
end