Class: TestComponent

Inherits:
TinyComponent::Base show all
Defined in:
app/components/test_component.rb

Constant Summary

Constants inherited from TinyComponent::Base

TinyComponent::Base::COMPILED_CACHE

Instance Attribute Summary

Attributes inherited from TinyComponent::Base

#block_content

Instance Method Summary collapse

Methods inherited from TinyComponent::Base

compile, compiled_source, component_name, path, #render, #render_in

Constructor Details

#initialize(test: nil, another_test: nil) ⇒ TestComponent

Returns a new instance of TestComponent.



2
3
4
5
# File 'app/components/test_component.rb', line 2

def initialize(test: nil, another_test: nil)
  @test = test
  @another_test = another_test
end