class Dawg::Word
Attributes
final[RW]
word[RW]
Public Class Methods
new( word = '', final = false)
click to toggle source
# File lib/dawg/word.rb, line 5 def initialize( word = '', final = false) @word = word @final = final end
Public Instance Methods
+(other)
click to toggle source
# File lib/dawg/word.rb, line 10 def +(other) Word.new(@word + other.word, other.final) end
inspect()
click to toggle source
# File lib/dawg/word.rb, line 18 def inspect @word end
to_s()
click to toggle source
# File lib/dawg/word.rb, line 14 def to_s @word end