Class: Object

Inherits:
BasicObject
Defined in:
lib/sinatra/outputbuffer.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/sinatra/outputbuffer.rb', line 6

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

#present?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/sinatra/outputbuffer.rb', line 9

def present?
  !blank?
end