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