Module: Shortly::Helper::MonkeyPatches::MonkeyObject

Defined in:
lib/shortly/helper.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/shortly/helper.rb', line 49

def blank?
  instance_of?(Array) ? empty? : nil?
end

#present?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/shortly/helper.rb', line 53

def present?
  !blank?
end