class Sentencemate::Word
Object used to emulate a single word in text.
Public Class Methods
new(word)
click to toggle source
# File lib/Sentencemate.rb, line 6 def initialize(word) @word = word end
Public Instance Methods
append(str)
click to toggle source
# File lib/Sentencemate.rb, line 9 def append(str) @word = @word << str return @word end
get()
click to toggle source
# File lib/Sentencemate.rb, line 13 def get return @word end
setword(str)
click to toggle source
# File lib/Sentencemate.rb, line 16 def setword(str) @word = str end
tag(str)
click to toggle source
# File lib/Sentencemate.rb, line 19 def tag(str) @tag = str end