Class: Rack::ShowExceptions

Inherits:
Object
  • Object
show all
Defined in:
lib/wunderbar/sinatra.rb

Instance Method Summary collapse

Instance Method Details

#pretty(*args) ⇒ Object



294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'lib/wunderbar/sinatra.rb', line 294

def pretty(*args)
  result = w_pretty(*args)

  unless result.respond_to? :join
    def result.join; self; end
  end

  unless result.respond_to? :each
    def result.each(&block); block.call(self); end
  end

  result
end

#w_prettyObject



292
# File 'lib/wunderbar/sinatra.rb', line 292

alias_method :w_pretty, :pretty