Sha256: f882e84db40787d167adf06ce1e803445f91f88e44b8d5930b232ec5b51fb784

Contents?: true

Size: 401 Bytes

Versions: 6

Compression:

Stored size: 401 Bytes

Contents

require 'yard'

module Helpers
  module Examples
    EXAMPLES_DIR = File.expand_path(File.join(File.dirname(__FILE__),'examples'))

    def parse_file(file, thisfile = __FILE__)
      YARD::Registry.clear

      path = File.join(Helpers::Examples::EXAMPLES_DIR, "#{file}.rb.txt")
      YARD::Parser::SourceParser.parse(path)
    end

    def yard(name)
      YARD::Registry.at(name)
    end
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
yard-dm-is-predefined-0.2.0 spec/helpers/examples.rb
yard-dm-predefined-0.1.0 spec/helpers/examples.rb
yard-parameters-0.1.1 spec/helpers/examples.rb
yard-parameters-0.1.0 spec/helpers/examples.rb
yard-dm-0.1.1 spec/helpers/examples.rb
yard-dm-0.1.0 spec/helpers/examples.rb