Class: Object

Inherits:
BasicObject
Defined in:
lib/monkey.rb

Overview

module Swagger

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/monkey.rb', line 5

def blank?
  respond_to?(:empty?) ? empty? : !self
end

#present?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/monkey.rb', line 11

def present?
  !blank?
end