Sha256: fa41fcad69e08c2526a2cd8e7afbe61d5f43db6f16980cb6695c80ec120e046d

Contents?: true

Size: 602 Bytes

Versions: 11

Compression:

Stored size: 602 Bytes

Contents

require 'yard'

require 'pry-doc/version'
require 'pry-doc/pry_ext/method_info'

module PryDoc
  def self.load_yardoc(version)
    path = "#{File.dirname(__FILE__)}/pry-doc/docs/#{version}"
    unless File.directory?(path)
      puts "#{RUBY_ENGINE}/#{RUBY_VERSION} isn't supported by this pry-doc version"
    end

    # Do not use pry-doc if Rubinius is active.
    Pry.config.has_pry_doc = RUBY_ENGINE !~ /rbx/

    YARD::Registry.load_yardoc(path)
  end

  def self.root
    @root ||= File.expand_path(File.dirname(__dir__))
  end

  root
end

PryDoc.load_yardoc(RUBY_VERSION[0...3].sub!('.', ''))

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pry-doc-0.13.2pre6 lib/pry-doc.rb
pry-doc-0.13.2pre5 lib/pry-doc.rb
pry-doc-0.13.2pre4 lib/pry-doc.rb
pry-doc-0.13.2pre3 lib/pry-doc.rb
pry-doc-0.13.2pre2 lib/pry-doc.rb
pry-doc-0.13.2pre1 lib/pry-doc.rb
pry-doc-0.13.1 lib/pry-doc.rb
pry-doc-0.13.0 lib/pry-doc.rb
pry-doc-0.13.0pre14 lib/pry-doc.rb
pry-doc-0.13.0pre13 lib/pry-doc.rb
pry-doc-0.13.0pre12 lib/pry-doc.rb