Module: Confident::AutoNullObject

Defined in:
lib/confident/null_object.rb

Class Method Summary collapse

Class Method Details

.wrap(value) ⇒ Object Also known as: []



10
11
12
13
# File 'lib/confident/null_object.rb', line 10

def wrap(value)
  return value unless NilClass === value
  NullObject.new
end