Sha256: c4f47034baddac30e8f93c2ca20f10f29f812e90f830ca2f5c3b8ba7716274ca

Contents?: true

Size: 253 Bytes

Versions: 3

Compression:

Stored size: 253 Bytes

Contents

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

      def initialize(x, y, letter = nil)
        @x = x
        @y = y
        @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/two_dimensional/point.rb
word_search-0.5.0 lib/word_search/two_dimensional/point.rb
word_search-0.1.0 lib/word_search/two_dimensional/point.rb