1
0
Fork 0
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:
Ryan Fitzgerald 2012-11-03 20:59:21 -07:00
parent cddfc409ed
commit 322313edb7
3 changed files with 11 additions and 19 deletions

View file

@ -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/ &&

View file

@ -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

View file

@ -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