Class: Bmg::Ordering::Native
- Inherits:
-
Object
- Object
- Bmg::Ordering::Native
- Includes:
- Bmg::Ordering
- Defined in:
- lib/bmg/support/ordering.rb
Instance Attribute Summary collapse
-
#comparator ⇒ Object
readonly
Returns the value of attribute comparator.
Instance Method Summary collapse
-
#initialize(comparator) ⇒ Native
constructor
A new instance of Native.
- #to_pairs ⇒ Object
Methods included from Bmg::Ordering
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
#comparator ⇒ Object (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_pairs ⇒ Object
36 37 38 |
# File 'lib/bmg/support/ordering.rb', line 36 def to_pairs raise Bmg::NotSupportedError end |