Module: Cucumber::Core::Test::HasLocation

Included in:
Tag
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



158
159
160
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 158

def attributes
  [tags, comments, multiline_arg].flatten
end

#commentsObject



167
168
169
170
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 167

def comments
  # will be overriden by nodes that actually have comments
  []
end

#fileObject



144
145
146
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 144

def file
  location.file
end

#file_colon_lineObject



140
141
142
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 140

def file_colon_line
  location.to_s
end

#lineObject



148
149
150
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 148

def line
  location.line
end

#locationObject



152
153
154
155
156
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 152

def location
  raise('Please set @location in the constructor') unless defined?(@location)

  @location
end

#multiline_argObject



172
173
174
175
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 172

def multiline_arg
  # will be overriden by nodes that actually have a multiline_argument
  Test::EmptyMultilineArgument.new
end

#tagsObject



162
163
164
165
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/test/location.rb', line 162

def tags
  # will be overriden by nodes that actually have tags
  []
end