Class: NilClass

Inherits:
Object show all
Defined in:
lib/backports/rails/kernel.rb,
lib/backports/2.0.0/nil/to_h.rb,
lib/backports/2.4.0/nil_class/dup.rb

Instance Method Summary collapse

Instance Method Details

#dupObject



2
3
4
# File 'lib/backports/2.4.0/nil_class/dup.rb', line 2

def dup
  self
end

#to_hObject



3
4
5
# File 'lib/backports/2.0.0/nil/to_h.rb', line 3

def to_h
  {}
end

#try(*args) ⇒ Object



26
27
28
# File 'lib/backports/rails/kernel.rb', line 26

def try(*args)
  nil
end