Class: Natural::Alternative

Inherits:
Fragment
  • Object
show all
Defined in:
lib/natural/fragment.rb

Direct Known Subclasses

Expansion, Spelling, Synonym

Instance Attribute Summary

Attributes inherited from Fragment

#aggregator, #filter, #text

Instance Method Summary collapse

Methods inherited from Fragment

#all_filters, #clone, #data, find, #id_range, #ids, #ids=, #initialize, #pretty_to_s, recurse_alternatives, #to_s

Constructor Details

This class inherits a constructor from Natural::Fragment

Instance Method Details

#scoreObject



269
270
271
# File 'lib/natural/fragment.rb', line 269

def score
  super - 2
end