Class: Minesweeper::BoardParams
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- Minesweeper::BoardParams
- Defined in:
- lib/minesweeper/board_params.rb
Instance Method Summary collapse
Instance Method Details
#validate ⇒ Object
18 19 20 21 22 |
# File 'lib/minesweeper/board_params.rb', line 18 def validate super validates_integer %i[height width] validates_includes %w[beginner advanced expert], :level end |