Sha256: 12759160cea2a398e07408675a94cbeb261ef2f0528ea8260ca727013df3fbcb
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
require 'yard' module Helpers module Examples EXAMPLES_DIR = File.expand_path(File.join(File.dirname(__FILE__),'examples')) def parse_file(file, legacy = false, thisfile = __FILE__) YARD::Registry.clear if legacy YARD::Parser::SourceParser.parser_type = :ruby18 else YARD::Parser::SourceParser.parser_type = :ruby end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-rails-0.3.0 | spec/helpers/examples.rb |
yard-rails-0.2.0 | spec/helpers/examples.rb |
yard-rails-0.1.0 | spec/helpers/examples.rb |