module Cucumber::Core::Test::HasLocation

Public Instance Methods

attributes() click to toggle source
# File lib/cucumber/core/test/location.rb, line 155
def attributes
  [tags, comments, multiline_arg].flatten
end
comments() click to toggle source
# File lib/cucumber/core/test/location.rb, line 164
def comments
  # will be overriden by nodes that actually have comments
  []
end
file() click to toggle source
# File lib/cucumber/core/test/location.rb, line 142
def file
  location.file
end
file_colon_line() click to toggle source
# File lib/cucumber/core/test/location.rb, line 138
def file_colon_line
  location.to_s
end
line() click to toggle source
# File lib/cucumber/core/test/location.rb, line 146
def line
  location.line
end
location() click to toggle source
# File lib/cucumber/core/test/location.rb, line 150
def location
  raise('Please set @location in the constructor') unless defined?(@location)
  @location
end
multiline_arg() click to toggle source
# File lib/cucumber/core/test/location.rb, line 169
def multiline_arg
  # will be overriden by nodes that actually have a multiline_argument
  Test::EmptyMultilineArgument.new
end
tags() click to toggle source
# File lib/cucumber/core/test/location.rb, line 159
def tags
  # will be overriden by nodes that actually have tags
  []
end