Class: Mensa::Cell::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/mensa/cell/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

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

#cellObject (readonly)

Returns the value of attribute cell.



8
9
10
# File 'app/components/mensa/cell/component.rb', line 8

def cell
  @cell
end