Core Extensions
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
Nil converts to an empty OpenObject.
Provide platform dependent null path.
CREDIT Daniel Burger
[Validate]