Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Aisweeper::BoardStore
Inherits
Reference
<
Object
Constants
DEFAULT_BASE_PATH =
Path
["./storage/boards"]
DEFAULT_FILE_NAME =
Path
["data.yml"]
Constructors
new
(id :
String
=
Random
.new.hex(3), storage_base_path :
Path
=
DEFAULT_BASE_PATH
)
Source
Instance methods
board_file_path
Source
delete
Source
id
Source
load
Source
save
(rows :
Array
(
Array
(
Aisweeper::Tile
)))
Source
storage_base_path
Source