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

Defined in:
lib/shortly/helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) blank?

Returns:

  • (Boolean)


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

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

- (Boolean) present?

Returns:

  • (Boolean)


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

def present?
  !blank?
end