Sha256: 18a1afdde1e041c17dc3e0ad9a9aa08519f1fb640a99628f401d01cc4a542c63

Contents?: true

Size: 359 Bytes

Versions: 3

Compression:

Stored size: 359 Bytes

Contents

module WordSearch
  module TwoDimensional
    class Direction
      include Ruby::Enum

      # Standard cardinal directions
      define :N,  [0,   1]
      define :NE, [1,   1]
      define :E,  [1,   0]
      define :SE, [1,  -1]
      define :S,  [0,  -1]
      define :SW, [-1, -1]
      define :W,  [-1,  0]
      define :NW, [-1,  1]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
word_search-0.5.1 lib/word_search/two_dimensional/direction.rb
word_search-0.5.0 lib/word_search/two_dimensional/direction.rb
word_search-0.1.0 lib/word_search/two_dimensional/direction.rb