Sha256: 4904dd6030cae131be6ffc795db79a3a1438490dd9815020b74ba69029609149

Contents?: true

Size: 223 Bytes

Versions: 4

Compression:

Stored size: 223 Bytes

Contents

# frozen_string_literal: true

class RedBlackTree
  module LeafNodeComparable # @private
    def <=> other
      if other.instance_of? ::RedBlackTree::LeafNode
        1
      else
        super
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
red-black-tree-0.1.5 lib/red_black_tree/node/leaf_node_comparable.rb
red-black-tree-0.1.4 lib/red_black_tree/node/leaf_node_comparable.rb
red-black-tree-0.1.3 lib/red_black_tree/node/leaf_node_comparable.rb
red-black-tree-0.1.2 lib/red_black_tree/node/leaf_node_comparable.rb