Sha256: e24726ea5863dba76ce7e4857540bb5404779bf6e3909465bdd8787e03b30c45
Contents?: true
Size: 330 Bytes
Versions: 3
Compression:
Stored size: 330 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.1.0 | lib/word_search/two_dimensional/point.rb |
word_search-1.0.1 | lib/word_search/two_dimensional/point.rb |
word_search-1.0.0 | lib/word_search/two_dimensional/point.rb |