Class: GridPresenter
- Inherits:
-
Straightedge::Presenter
- Object
- Straightedge::Presenter
- GridPresenter
- Defined in:
- lib/straightedge/gosu/presenters/grid_presenter.rb
Instance Method Summary collapse
-
#display(grid) ⇒ Object
, scale: 10.0).
Instance Method Details
#display(grid) ⇒ Object
, scale: 10.0)
2 3 4 5 6 7 8 |
# File 'lib/straightedge/gosu/presenters/grid_presenter.rb', line 2 def display(grid) #, scale: 10.0) cell_presenter = QuadrilateralPresenter.new.on(@surface) grid.each_cell do |cell| #puts "--- rendering cell in #{cell.color}" cell_presenter.display(cell) end end |