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