Sha256: 62088f3327a992273af6ba2ea75fa4ada6ea58a3eb2861145fd16b7260fe3600

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

module WordSearch
  module ThreeDimensional
    class Point
      attr_accessor :x, :y, :z, :letter
      alias to_s letter

      def initialize(x, y, z, letter = nil)
        @x = x
        @y = y
        @z = z
        @letter = letter if letter
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
word_search-0.5.1 lib/word_search/three_dimensional/point.rb
word_search-0.5.0 lib/word_search/three_dimensional/point.rb
word_search-0.1.0 lib/word_search/three_dimensional/point.rb