Class: Rack::ShowExceptions
- Inherits:
-
Object
- Object
- Rack::ShowExceptions
- Defined in:
- lib/wunderbar/sinatra.rb
Instance Method Summary collapse
Instance Method Details
#pretty(*args) ⇒ Object
275 276 277 278 279 280 281 282 283 284 285 286 287 |
# File 'lib/wunderbar/sinatra.rb', line 275 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
273 |
# File 'lib/wunderbar/sinatra.rb', line 273 alias_method :w_pretty, :pretty |