Sha256: 050c600596b3fbd98beb009b4b69e734c5039b367527d2842f5a8320b368440e

Contents?: true

Size: 615 Bytes

Versions: 8

Compression:

Stored size: 615 Bytes

Contents

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pry-doc-1.5.0 lib/pry-doc.rb
pry-doc-1.4.0 lib/pry-doc.rb
pry-doc-1.3.0 lib/pry-doc.rb
pry-doc-1.2.0 lib/pry-doc.rb
pry-doc-1.1.0 lib/pry-doc.rb
pry-doc-1.0.0 lib/pry-doc.rb
pry-doc-0.13.5 lib/pry-doc.rb
pry-doc-0.13.4 lib/pry-doc.rb