Class: TestComponent
- Inherits:
-
TinyComponent::Base
- Object
- TinyComponent::Base
- TestComponent
- 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
Instance Method Summary collapse
-
#initialize(test: nil, another_test: nil) ⇒ TestComponent
constructor
A new instance of TestComponent.
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 |