Class: Stretchy::Boosts::Base
- Inherits:
-
Object
- Object
- Stretchy::Boosts::Base
- Includes:
- Utils::Contract
- Defined in:
- lib/stretchy/boosts/base.rb
Direct Known Subclasses
Constant Summary collapse
- DEFAULT_WEIGHT =
1.2- DEFAULT_DECAY_FN =
:gauss
Constants included from Utils::Contract
Utils::Contract::ASSERTIONS, Utils::Contract::DECAY_FUNCTIONS, Utils::Contract::DISTANCE_FORMAT
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #to_search ⇒ Object
Methods included from Utils::Contract
included, #require_one, #validate!
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/stretchy/boosts/base.rb', line 12 def initialize raise "Override this in subclass" end |
Instance Method Details
#to_search ⇒ Object
16 17 18 |
# File 'lib/stretchy/boosts/base.rb', line 16 def to_search raise "Override this in subclass" end |