Module: Cucumber::Glue

Defined in:
lib/cucumber/glue/dsl.rb,
lib/cucumber/glue/hook.rb,
lib/cucumber/glue/snippet.rb,
lib/cucumber/glue/proto_world.rb,
lib/cucumber/glue/world_factory.rb,
lib/cucumber/glue/invoke_in_world.rb,
lib/cucumber/glue/step_definition.rb,
lib/cucumber/glue/registry_and_more.rb

Defined Under Namespace

Modules: Dsl, ProtoWorld, Snippet Classes: ArityMismatchError, Hook, InvokeInWorld, MultipleWorld, NilWorld, RegistryAndMore, StepDefinition, WorldFactory

Class Method Summary collapse

Class Method Details

.backtrace_line(proc, name) ⇒ Object


182
183
184
185
# File 'lib/cucumber/glue/registry_and_more.rb', line 182

def self.backtrace_line(proc, name)
  location = Cucumber::Core::Ast::Location.from_source_location(*proc.source_location)
  "#{location}:in `#{name}'"
end