Class: Mensa::TableRow::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Mensa::TableRow::Component
- Includes:
- Mensa::TablesHelper
- Defined in:
- app/components/mensa/table_row/component.rb
Instance Attribute Summary collapse
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(table:, row:) ⇒ Component
constructor
A new instance of Component.
Methods included from ApplicationHelper
#method_missing, #respond_to_missing?
Constructor Details
#initialize(table:, row:) ⇒ Component
Returns a new instance of Component.
13 14 15 16 |
# File 'app/components/mensa/table_row/component.rb', line 13 def initialize(table:, row:) @table = table @row = row end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Mensa::ApplicationHelper
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
11 12 13 |
# File 'app/components/mensa/table_row/component.rb', line 11 def row @row end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
10 11 12 |
# File 'app/components/mensa/table_row/component.rb', line 10 def table @table end |