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