class Array::Tag

Attributes

key[R]
value[RW]

Public Class Methods

new(key, value = nil) click to toggle source
# File lib/andromeda/patch/array_bin_search.rb, line 7
def initialize(key, value = nil)
  @key   = key
  @value = value
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/andromeda/patch/array_bin_search.rb, line 14
def <=>(other)
  return key <=> other.key
end
inspect()
Alias for: to_s
to_s() click to toggle source
# File lib/andromeda/patch/array_bin_search.rb, line 18
def to_s
  "Tag(#{key.to_s} => #{value.to_s})"
end
Also aliased as: inspect
untagged() click to toggle source
# File lib/andromeda/patch/array_bin_search.rb, line 12
def untagged ; value end