# File lib/cucumber/ast/location.rb, line 7 def initialize(file, line) @file = file || raise(ArgumentError, "file is mandatory") @line = line || raise(ArgumentError, "line is mandatory") end
# File lib/cucumber/ast/location.rb, line 16 def on_line(new_line) Location.new(file, new_line) end
# File lib/cucumber/ast/location.rb, line 12 def to_s "#{file}:#{line}" end