class Cucumber::Glue::MultipleWorld

Raised if there are 2 or more World blocks.

def initialize(first_proc, second_proc)

def initialize(first_proc, second_proc)
  # TODO: [LH] - Just use a heredoc here to fix this up
  message = String.new
  message << "You can only pass a proc to #World once, but it's happening\n"
  message << "in 2 places:\n\n"
  message << Glue.backtrace_line(first_proc, 'World') << "\n"
  message << Glue.backtrace_line(second_proc, 'World') << "\n\n"
  message << "Use Ruby modules instead to extend your worlds. See the Cucumber::Glue::Dsl#World RDoc\n"
  message << "or http://wiki.github.com/cucumber/cucumber/a-whole-new-world.\n\n"
  super(message)
end