Class: Packr::Words::Item
- Inherits:
-
Object
- Object
- Packr::Words::Item
- Defined in:
- lib/packr/words.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#encoded ⇒ Object
Returns the value of attribute encoded.
-
#index ⇒ Object
Returns the value of attribute index.
-
#word ⇒ Object
Returns the value of attribute word.
Instance Method Summary collapse
-
#initialize(word) ⇒ Item
constructor
A new instance of Item.
- #to_s ⇒ Object
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
#count ⇒ Object
Returns the value of attribute count.
69 70 71 |
# File 'lib/packr/words.rb', line 69 def count @count end |
#encoded ⇒ Object
Returns the value of attribute encoded.
69 70 71 |
# File 'lib/packr/words.rb', line 69 def encoded @encoded end |
#index ⇒ Object
Returns the value of attribute index.
69 70 71 |
# File 'lib/packr/words.rb', line 69 def index @index end |
#word ⇒ Object
Returns the value of attribute word.
69 70 71 |
# File 'lib/packr/words.rb', line 69 def word @word end |
Instance Method Details
#to_s ⇒ Object
78 79 80 |
# File 'lib/packr/words.rb', line 78 def to_s @word end |