Since NilClass is immutable it cannot be duplicated. For this reason try_dup returns self.
nil.dup! #=> nil
Compliments Kernel#ergo.
"a".ergo{ |o| o.upcase } #=> "A" nil.ergo{ |o| o.bar } #=> nil
CREDIT: Daniel DeLorme
Allows nil to respond to to_f. Always returns 0.
nil.to_f #=> 0.0
CREDIT: Matz
Allows nil to create an empty hash, similar to to_a and to_s.
nil.to_h #=> {}
CREDIT: Trans
Create an empty OpenStruct object.
Provide platform dependent null path.
CREDIT Daniel Burger
See Kernel#try.
[Validate]