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

Defined in:
lib/shortly/helper.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean



43
44
45
# File 'lib/shortly/helper.rb', line 43

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

#present?Boolean



47
48
49
# File 'lib/shortly/helper.rb', line 47

def present?
  !blank?
end