Sha256: 4489880f43549cb8b4c25b4736f7e322f4f37883736c939d06a3b9680fe1fe82

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

module YARD::CodeObjects::Cucumber
  module LocationHelper

    def line_number
      files.first.last if files && !files.empty?
    end

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

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

  class Base < YARD::CodeObjects::Base
    include LocationHelper

    def path
      @value || super
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yard-nrser-cucumber-0.1.3 lib/yard/code_objects/cucumber/base.rb
yard-nrser-cucumber-0.1.2 lib/yard/code_objects/cucumber/base.rb
yard-nrser-cucumber-0.1.1 lib/yard/code_objects/cucumber/base.rb
yard-nrser-cucumber-0.1.0 lib/yard/code_objects/cucumber/base.rb