Class: Mensa::View::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Mensa::View::Component
- Includes:
- TablesHelper
- Defined in:
- app/components/mensa/view/component.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(table) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(table) ⇒ Component
Returns a new instance of Component.
11 12 13 |
# File 'app/components/mensa/view/component.rb', line 11 def initialize(table) @table = table end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
9 10 11 |
# File 'app/components/mensa/view/component.rb', line 9 def table @table end |