Class NilClass
In: lib/core/facets/kernel/blank.rb
lib/core/facets/kernel/ergo.rb
lib/core/facets/kernel/try.rb
lib/core/facets/boolean.rb
lib/core/facets/object/dup.rb
lib/standard/facets/ostruct/to_ostruct.rb
Parent: Object

Methods

blank?   clone?   dup!   dup?   ergo   to_bool   to_ostruct   try  

Constants

FUNCTOR = Functor.new{ nil }

Public Instance methods

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

Create an empty OpenStruct object.

See Kernel#try.

[Validate]