2011-09-19 06:42:31 +00:00
|
|
|
class Pry
|
|
|
|
module RbxMethod
|
|
|
|
private
|
|
|
|
def core?
|
2011-09-19 08:18:57 +00:00
|
|
|
source_file and RbxPath.is_core_path?(source_file)
|
2011-09-19 06:42:31 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def core_code
|
|
|
|
MethodSource.source_helper(core_path_line)
|
|
|
|
end
|
|
|
|
|
|
|
|
def core_doc
|
|
|
|
MethodSource.comment_helper(core_path_line)
|
|
|
|
end
|
|
|
|
|
|
|
|
def core_path_line
|
2011-09-19 08:18:57 +00:00
|
|
|
[RbxPath.convert_path_to_full(source_file), source_line]
|
2011-09-19 06:42:31 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|