Module: PryDoc
- Defined in:
- lib/pry-doc.rb,
lib/pry-doc/version.rb
Constant Summary collapse
- VERSION =
'1.5.0'.freeze
Class Method Summary collapse
Class Method Details
.load_yardoc(version) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/pry-doc.rb', line 2 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 |
.root ⇒ Object
14 15 16 |
# File 'lib/pry-doc.rb', line 14 def self.root @root ||= File.(File.dirname(__dir__)) end |