Class: Xapian::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/xapian.rb

Overview

Ruby wrapper for Xapian::ValueIterator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, valueno) ⇒ Value

Returns a new instance of Value.



129
130
131
132
# File 'lib/xapian.rb', line 129

def initialize(value, valueno)
  @value = value
  @valueno = valueno
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



127
128
129
# File 'lib/xapian.rb', line 127

def value
  @value
end

#valuenoObject

Returns the value of attribute valueno.



127
128
129
# File 'lib/xapian.rb', line 127

def valueno
  @valueno
end

Instance Method Details

#==(other) ⇒ Object

initialize



134
135
136
# File 'lib/xapian.rb', line 134

def ==(other)
  return other.is_a?(Xapian::Value) && other.value == @value && other.valueno == @valueno
end