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
#file ⇒ Object
8 9 10 |
# File 'lib/yard/code_objects/cucumber/base.rb', line 8 def file files.first.first if files && !files.empty? end |
#line_number ⇒ Object
4 5 6 |
# File 'lib/yard/code_objects/cucumber/base.rb', line 4 def line_number files.first.last if files && !files.empty? end |
#location ⇒ Object
12 13 14 |
# File 'lib/yard/code_objects/cucumber/base.rb', line 12 def location "#{file}:#{line_number}" end |