Class: Rack::ShowExceptions
- Inherits:
-
Object
- Object
- Rack::ShowExceptions
- Defined in:
- lib/wunderbar/sinatra.rb
Instance Method Summary collapse
Instance Method Details
#pretty(*args) ⇒ Object
285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/wunderbar/sinatra.rb', line 285 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_pretty ⇒ Object
283 |
# File 'lib/wunderbar/sinatra.rb', line 283 alias_method :w_pretty, :pretty |