Class: Thesaurus::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/thesaurus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root, words) ⇒ Entry

Returns a new instance of Entry.



24
25
26
27
# File 'lib/thesaurus.rb', line 24

def initialize(root, words)
  @root = root
  @words = words
end

Instance Attribute Details

#rootObject (readonly)

Returns the value of attribute root.



29
30
31
# File 'lib/thesaurus.rb', line 29

def root
  @root
end

#wordsObject (readonly)

Returns the value of attribute words.



29
30
31
# File 'lib/thesaurus.rb', line 29

def words
  @words
end