Class: Daru::Core::MergeFrame::NilSorter

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/daru/core/merge.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



15
16
17
# File 'lib/daru/core/merge.rb', line 15

def <=>(other)
  other.nil? ? 0 : -1
end

#==(_other) ⇒ Object



11
12
13
# File 'lib/daru/core/merge.rb', line 11

def ==(_other)
  false
end

#nil?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/daru/core/merge.rb', line 7

def nil?
  true
end