mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix a few minor YARD issues
This commit is contained in:
parent
cddfc409ed
commit
322313edb7
3 changed files with 11 additions and 19 deletions
|
@ -18,10 +18,10 @@ class Pry
|
|||
end
|
||||
end
|
||||
|
||||
# @param [String]
|
||||
# @param [String] input
|
||||
# @param [Binding] target The binding context of the input.
|
||||
# @return [Symbol] type of input
|
||||
def input_type(input,target)
|
||||
def input_type(input, target)
|
||||
if input == ""
|
||||
:blank
|
||||
elsif target.eval("defined? #{input} ") =~ /variable|constant/ &&
|
||||
|
|
|
@ -90,8 +90,8 @@ class Pry
|
|||
# at the start of the method definition is used. Otherwise the nesting from
|
||||
# the end of the line is used.
|
||||
#
|
||||
# @param String str The ruby code to analyze
|
||||
# @param Fixnum line_number The line number (starting from 1)
|
||||
# @param [String] str The ruby code to analyze
|
||||
# @param [Fixnum] line_number The line number (starting from 1)
|
||||
# @return [Array<String>]
|
||||
def self.nesting_at(str, line_number)
|
||||
indent = new
|
||||
|
|
|
@ -1,21 +1,13 @@
|
|||
class Pry::Pager
|
||||
#
|
||||
# @param [String] text
|
||||
# A piece of text to run through a pager.
|
||||
#
|
||||
# @param [:simple] pager
|
||||
# Use the pure ruby pager.
|
||||
#
|
||||
# @param [:system] pager
|
||||
# Use the system pager (less) or the environment variable $PAGER if set.
|
||||
#
|
||||
# @param [nil] pager
|
||||
# Infer what pager to use from the environment.
|
||||
# What this really means is that JRuby and systems that do not have access
|
||||
# to 'less' will run through the pure ruby pager.
|
||||
#
|
||||
# @return [void]
|
||||
#
|
||||
# @param [Symbol?] pager
|
||||
# `:simple` -- Use the pure ruby pager.
|
||||
# `:system` -- Use the system pager (less) or the environment variable
|
||||
# $PAGER if set.
|
||||
# `nil` -- Infer what pager to use from the environment. What this
|
||||
# really means is that JRuby and systems that do not have
|
||||
# access to 'less' will run through the pure ruby pager.
|
||||
def self.page(text, pager = nil)
|
||||
case pager
|
||||
when nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue