Class: Charty::DaruIndex

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

Instance Attribute Summary

Attributes inherited from Index

#name, #values

Instance Method Summary collapse

Methods inherited from Index

#[], #initialize, #loc, #union

Constructor Details

This class inherits a constructor from Charty::Index

Instance Method Details

#==(other) ⇒ Object



134
135
136
137
138
139
140
141
# File 'lib/charty/index.rb', line 134

def ==(other)
  case other
  when DaruIndex
    values == other.values
  else
    super
  end
end

#lengthObject



130
131
132
# File 'lib/charty/index.rb', line 130

def length
  size
end