Class: Groonga::Index

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column, section) ⇒ Index

Returns a new instance of Index.



21
22
23
24
# File 'lib/groonga/index.rb', line 21

def initialize(column, section)
  @column = column
  @section = section
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



18
19
20
# File 'lib/groonga/index.rb', line 18

def column
  @column
end

#sectionObject (readonly)

Returns the value of attribute section.



19
20
21
# File 'lib/groonga/index.rb', line 19

def section
  @section
end

Instance Method Details

#==(other) ⇒ Object



26
27
28
29
30
# File 'lib/groonga/index.rb', line 26

def ==(other)
  other.is_a?(self.class) and
    @column == other.column and
    @section == other.section
end