Class: Xapian::Term
- Inherits:
-
Object
- Object
- Xapian::Term
- Defined in:
- lib/xapian.rb
Overview
– safe Ruby wrapper for the dangerous C++ Xapian::TermIterator class
Instance Attribute Summary collapse
-
#term ⇒ Object
Returns the value of attribute term.
-
#termfreq ⇒ Object
Returns the value of attribute termfreq.
-
#wdf ⇒ Object
Returns the value of attribute wdf.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(term, wdf = nil, termfreq = nil) ⇒ Term
constructor
A new instance of Term.
Constructor Details
#initialize(term, wdf = nil, termfreq = nil) ⇒ Term
Returns a new instance of Term.
74 75 76 77 78 |
# File 'lib/xapian.rb', line 74 def initialize(term, wdf=nil, termfreq=nil) @term = term @wdf = wdf @termfreq = termfreq end |
Instance Attribute Details
#term ⇒ Object
Returns the value of attribute term.
72 73 74 |
# File 'lib/xapian.rb', line 72 def term @term end |
#termfreq ⇒ Object
Returns the value of attribute termfreq.
72 73 74 |
# File 'lib/xapian.rb', line 72 def termfreq @termfreq end |
#wdf ⇒ Object
Returns the value of attribute wdf.
72 73 74 |
# File 'lib/xapian.rb', line 72 def wdf @wdf end |