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

Defined in:
lib/shortly/helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) blank?



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

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

- (Boolean) present?



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

def present?
  !blank?
end