lib/maglev/facets/object.rb
# if the value is nil or empty then the default value will be used
if the value is nil or empty then the default value will be used
if the value is nil or empty then the default value will be used
def if_nil_or_empty(default = nil)
    if nil? or (respond_to?(:empty?) and empty?)
      block_given? ? yield : default
    else
      self
    end
  end
def if_nil_or_empty ( default = nil ) if nil? or ( respond_to? ( :empty? ) and empty? ) block_given? ? yield : default else self end end
if the value is nil or empty then the default value will be used
if the value is nil or empty then the default value will be used
default
<not_specific>