module Cucumber::Core::Test::HasLocation

Public Instance Methods

attributes() click to toggle source
# File lib/cucumber/core/test/location.rb, line 154
def attributes
  [tags, comments, multiline_arg].flatten
end
comments() click to toggle source
# File lib/cucumber/core/test/location.rb, line 163
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 141
def file
  location.file
end
file_colon_line() click to toggle source
# File lib/cucumber/core/test/location.rb, line 137
def file_colon_line
  location.to_s
end
line() click to toggle source
# File lib/cucumber/core/test/location.rb, line 145
def line
  location.line
end
location() click to toggle source
# File lib/cucumber/core/test/location.rb, line 149
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 168
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 158
def tags
  # will be overriden by nodes that actually have tags
  []
end