Class: Object

Inherits:
BasicObject
Defined in:
lib/bits.rb

Instance Method Summary collapse

Instance Method Details

#containerizeObject



2
3
4
# File 'lib/bits.rb', line 2

def containerize
    if self.is_a? Array then self else [self].compact end
end

#fallback(value) ⇒ Object



6
7
8
# File 'lib/bits.rb', line 6

def fallback value
    if nil? then value else self end
end