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

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

Instance Method Summary collapse

Instance Method Details

#fileObject



8
9
10
# File 'lib/yard/code_objects/cucumber/base.rb', line 8

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

#line_numberObject



4
5
6
# File 'lib/yard/code_objects/cucumber/base.rb', line 4

def line_number
  files.first.last
end

#locationObject



12
13
14
# File 'lib/yard/code_objects/cucumber/base.rb', line 12

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