Module: YARD::CodeObjects::Cucumber::LocationHelper

Included in:
Base, NamespaceObject, StepTransformerObject
Defined in:
lib/yard/code_objects/cucumber/base.rb

Instance Method Summary collapse

Instance Method Details

#fileObject



10
11
12
# File 'lib/yard/code_objects/cucumber/base.rb', line 10

def file
  files.first.first if files && !files.empty?
end

#line_numberObject



6
7
8
# File 'lib/yard/code_objects/cucumber/base.rb', line 6

def line_number
  files.first.last
end

#locationObject



14
15
16
# File 'lib/yard/code_objects/cucumber/base.rb', line 14

def location
  "#{file}:#{line_number}"
end