In Files

Files

Bacon::TestUnitOutput::TapOutput::Proc

Public Instance Methods

change?() click to toggle source
     # File lib/bacon.rb, line 263
263:   def change?
264:     pre_result = yield
265:     called = call
266:     post_result = yield
267:     pre_result != post_result
268:   end
raise?(*exceptions) click to toggle source
     # File lib/bacon.rb, line 239
239:   def raise?(*exceptions)
240:     exceptions = [RuntimeError]  if exceptions.empty?
241:     call
242: 
243:   # Only to work in 1.9.0, rescue with splat doesn't work there right now
244:   rescue Object => e
245:     case e
246:     when *exceptions
247:       e
248:     else
249:       raise e
250:     end
251:   else
252:     false
253:   end
throw?(sym) click to toggle source
     # File lib/bacon.rb, line 255
255:   def throw?(sym)
256:     catch(sym) {
257:       call
258:       return false
259:     }
260:     return true
261:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.