Sha256: b7e4e18efe4fe4b654c6e3145f2f615e461cc3d06586fcde45b43f8ecf85025e
Contents?: true
Size: 413 Bytes
Versions: 29
Compression:
Stored size: 413 Bytes
Contents
module Cucumber module Glue class WorldFactory def initialize(proc) @proc = proc || -> { Object.new } end def create_world @proc.call || raise_nil_world end def raise_nil_world raise NilWorld rescue NilWorld => e e.backtrace.clear e.backtrace.push(Glue.backtrace_line(@proc, 'World')) raise e end end end end
Version data entries
29 entries across 29 versions & 3 rubygems