Class: Packr::Words::Item

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word) ⇒ Item

Returns a new instance of Item.



71
72
73
74
75
76
# File 'lib/packr/words.rb', line 71

def initialize(word)
  @word = word
  @count = 0
  @encoded = ""
  @index = -1
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



69
70
71
# File 'lib/packr/words.rb', line 69

def count
  @count
end

#encodedObject

Returns the value of attribute encoded.



69
70
71
# File 'lib/packr/words.rb', line 69

def encoded
  @encoded
end

#indexObject

Returns the value of attribute index.



69
70
71
# File 'lib/packr/words.rb', line 69

def index
  @index
end

#wordObject

Returns the value of attribute word.



69
70
71
# File 'lib/packr/words.rb', line 69

def word
  @word
end

Instance Method Details

#to_sObject



78
79
80
# File 'lib/packr/words.rb', line 78

def to_s
  @word
end