mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Remove unneeded special case for rbx.
This commit is contained in:
parent
54cb0f369b
commit
4b612fb03f
3 changed files with 1 additions and 20 deletions
|
@ -264,7 +264,6 @@ end
|
|||
|
||||
require 'pry/version'
|
||||
require 'pry/repl'
|
||||
require 'pry/rbx_method'
|
||||
require 'pry/rbx_path'
|
||||
require 'pry/code'
|
||||
require 'pry/history_array'
|
||||
|
|
|
@ -23,7 +23,6 @@ class Pry
|
|||
|
||||
extend Helpers::BaseHelpers
|
||||
include Helpers::BaseHelpers
|
||||
include RbxMethod if rbx?
|
||||
include Helpers::DocumentationHelpers
|
||||
include CodeObject::Helpers
|
||||
|
||||
|
@ -293,11 +292,7 @@ class Pry
|
|||
info = pry_doc_info
|
||||
info.docstring if info
|
||||
when :ruby
|
||||
if rbx? && !pry_method?
|
||||
get_comment_content(core_doc)
|
||||
else
|
||||
get_comment_content(comment)
|
||||
end
|
||||
get_comment_content(comment)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
class Pry
|
||||
module RbxMethod
|
||||
private
|
||||
|
||||
def core_code
|
||||
MethodSource.source_helper(source_location)
|
||||
end
|
||||
|
||||
def core_doc
|
||||
MethodSource.comment_helper(source_location)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue