Class: Bmg::Ordering::Native

Inherits:
Object
  • Object
show all
Includes:
Bmg::Ordering
Defined in:
lib/bmg/support/ordering.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Bmg::Ordering

#call, #map, new, #to_a

Constructor Details

#initialize(comparator) ⇒ Native

Returns a new instance of Native.



31
32
33
# File 'lib/bmg/support/ordering.rb', line 31

def initialize(comparator)
  @comparator = comparator
end

Instance Attribute Details

#comparatorObject (readonly)

Returns the value of attribute comparator.



34
35
36
# File 'lib/bmg/support/ordering.rb', line 34

def comparator
  @comparator
end

Instance Method Details

#to_pairsObject



36
37
38
# File 'lib/bmg/support/ordering.rb', line 36

def to_pairs
  raise Bmg::NotSupportedError
end