class WordSearch::ThreeDimensional::Point

Attributes

letter[RW]
to_s[RW]
x[RW]
y[RW]
z[RW]

Public Class Methods

new(x, y, z, letter = nil) click to toggle source
# File lib/word_search/three_dimensional/point.rb, line 9
def initialize(x, y, z, letter = nil)
  @x = x
  @y = y
  @z = z
  @letter = letter if letter
end

Public Instance Methods

coordinate() click to toggle source
# File lib/word_search/three_dimensional/point.rb, line 16
def coordinate
  [x, y, z]
end