mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
parent
94e6ea0453
commit
623306966b
5 changed files with 8 additions and 13 deletions
|
@ -163,7 +163,7 @@ class Pry
|
|||
|
||||
#
|
||||
# @deprecated
|
||||
# please use {#all_from_obj} instead.
|
||||
# please use {all_from_obj} instead.
|
||||
# the `method_type` argument is ignored.
|
||||
#
|
||||
def all_from_common(obj, method_type = nil, include_super=true)
|
||||
|
|
|
@ -42,9 +42,6 @@ class Pry
|
|||
# transation we make that not happen, which means that alias_method_chains, etc.
|
||||
# continue to work.
|
||||
#
|
||||
# @param [String] meth_name The method name before aliasing
|
||||
# @param [Module] target The owner of the method
|
||||
|
||||
def with_method_transaction
|
||||
temp_name = "__pry_#{method.original_name}__"
|
||||
method = self.method
|
||||
|
|
|
@ -14,11 +14,12 @@ class Pry::Pager
|
|||
end
|
||||
|
||||
# Send the given text through the best available pager (if `Pry.config.pager` is
|
||||
# enabled).
|
||||
# If you want to send text through in chunks as you generate it, use `open` to
|
||||
# get a writable object instead.
|
||||
# @param [String] text A piece of text to run through a pager.
|
||||
# @param [IO] output (`$stdout`) An object to send output to.
|
||||
# enabled). If you want to send text through in chunks as you generate it, use `open`
|
||||
# to get a writable object instead.
|
||||
#
|
||||
# @param [String] text
|
||||
# Text to run through a pager.
|
||||
#
|
||||
def page(text)
|
||||
open do |pager|
|
||||
pager << text
|
||||
|
@ -27,7 +28,6 @@ class Pry::Pager
|
|||
|
||||
# Yields a pager object (`NullPager`, `SimplePager`, or `SystemPager`). All
|
||||
# pagers accept output with `#puts`, `#print`, `#write`, and `#<<`.
|
||||
# @param [IO] output (`$stdout`) An object to send output to.
|
||||
def open
|
||||
pager = best_available
|
||||
yield pager
|
||||
|
@ -48,7 +48,6 @@ class Pry::Pager
|
|||
# `#print`, `#write`, and `#<<`. You must call `#close` when you're done
|
||||
# writing output to a pager, and you must rescue `Pry::Pager::StopPaging`.
|
||||
# These requirements can be avoided by using `.open` instead.
|
||||
# @param [#<<] output ($stdout) An object to send output to.
|
||||
def best_available
|
||||
if !_pry_.config.pager
|
||||
NullPager.new(_pry_.output)
|
||||
|
|
|
@ -124,7 +124,7 @@ class Pry
|
|||
#
|
||||
# Generate completions.
|
||||
#
|
||||
# @param [String] input
|
||||
# @param [String] str
|
||||
# What the user has typed so far
|
||||
#
|
||||
# @return [Array<String>]
|
||||
|
|
|
@ -158,7 +158,6 @@ class Pry
|
|||
# format as Method#source_location. If the source location
|
||||
# cannot be found this method returns `nil`.
|
||||
#
|
||||
# @param [Module] mod The module (or class).
|
||||
# @return [Array<String, Fixnum>, nil] The source location of the
|
||||
# module (or class), or `nil` if no source location found.
|
||||
def source_location
|
||||
|
|
Loading…
Reference in a new issue