Class: Frequent::Algorithm
- Inherits:
-
Object
- Object
- Frequent::Algorithm
- Defined in:
- lib/frequent/algorithm.rb
Instance Attribute Summary collapse
-
#b ⇒ Object
readonly
Returns the value of attribute b.
-
#n ⇒ Object
readonly
Returns the value of attribute n.
Instance Method Summary collapse
-
#initialize(n, b) ⇒ Algorithm
constructor
A new instance of Algorithm.
- #process(item) ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(n, b) ⇒ Algorithm
Returns a new instance of Algorithm.
8 9 10 11 |
# File 'lib/frequent/algorithm.rb', line 8 def initialize(n, b) @n = n @b = b end |
Instance Attribute Details
#b ⇒ Object (readonly)
Returns the value of attribute b.
6 7 8 |
# File 'lib/frequent/algorithm.rb', line 6 def b @b end |
#n ⇒ Object (readonly)
Returns the value of attribute n.
6 7 8 |
# File 'lib/frequent/algorithm.rb', line 6 def n @n end |