Sha256: e7529abe7648f09c0b1805a8bdba23ff5d2222c81c19e5ce9b348c25b4b298fd
Contents?: true
Size: 331 Bytes
Versions: 3
Compression:
Stored size: 331 Bytes
Contents
# frozen_string_literal: true 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 def coordinate [x, y] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
word_search-1.3.0 | lib/word_search/two_dimensional/point.rb |
word_search-1.2.1 | lib/word_search/two_dimensional/point.rb |
word_search-1.2.0 | lib/word_search/two_dimensional/point.rb |