Class: NilClass

Inherits:
Object show all
Defined in:
lib/nil.rb

Instance Method Summary collapse

Instance Method Details

#call(*args) ⇒ Object



5
# File 'lib/nil.rb', line 5

def call(*args); self; end

#dig(*args) ⇒ Object



4
# File 'lib/nil.rb', line 4

def dig(*args); self; end

#empty?Boolean

Returns:

  • (Boolean)


2
# File 'lib/nil.rb', line 2

def empty?; true; end

#present?Boolean

Returns:

  • (Boolean)


3
# File 'lib/nil.rb', line 3

def present?; false; end