class Dir2D
Constants
- All
- E
- N
- S
- W
Public Class Methods
hori(length=1)
click to toggle source
# File lib/cem/cruzzles.rb, line 261 def self.hori(length=1) return [E * (1..length), W * (1..length)].flatten end
vert(length=1)
click to toggle source
# File lib/cem/cruzzles.rb, line 257 def self.vert(length=1) return [N * (1..length), S * (1..length)].flatten end
x(length=1)
click to toggle source
# File lib/cem/cruzzles.rb, line 265 def self.x(length=1) return vert(length) + hori(length) end