summaryrefslogtreecommitdiff
path: root/lib/method_source/code_helpers.rb
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2017-02-02 16:20:21 +0100
committerGitHub <noreply@github.com>2017-02-02 16:20:21 +0100
commit0e4ad87b73794b271bffae4230382888207ed212 (patch)
treed7956326bc6c835442aeb5231fae790d4dd419c4 /lib/method_source/code_helpers.rb
parent0c0a0cebbd11f2b44104b8c84b4f9952692422ad (diff)
parent05ce7fcb22d3c7b0100d328a52376c6d5cb9272a (diff)
downloadmethod_source-0e4ad87b73794b271bffae4230382888207ed212.tar.gz
Merge pull request #39 from koic/integer_unification
Integer Unification for Ruby 2.4.0+
Diffstat (limited to 'lib/method_source/code_helpers.rb')
-rw-r--r--lib/method_source/code_helpers.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/method_source/code_helpers.rb b/lib/method_source/code_helpers.rb
index 6c1d53e..9d9da55 100644
--- a/lib/method_source/code_helpers.rb
+++ b/lib/method_source/code_helpers.rb
@@ -6,14 +6,14 @@ module MethodSource
# This is useful to get module or method source code.
#
# @param [Array<String>, File, String] file The file to parse, either as a File or as
- # @param [Fixnum] line_number The line number at which to look.
+ # @param [Integer] line_number The line number at which to look.
# NOTE: The first line in a file is
# line 1!
# @param [Hash] options The optional configuration parameters.
# @option options [Boolean] :strict If set to true, then only completely
# valid expressions are returned. Otherwise heuristics are used to extract
# expressions that may have been valid inside an eval.
- # @option options [Fixnum] :consume A number of lines to automatically
+ # @option options [Integer] :consume A number of lines to automatically
# consume (add to the expression buffer) without checking for validity.
# @return [String] The first complete expression
# @raise [SyntaxError] If the first complete expression can't be identified
@@ -46,7 +46,7 @@ module MethodSource
#
# @param [Array<String>, File, String] file The file to parse, either as a File or as
# a String or an Array of lines.
- # @param [Fixnum] line_number The line number at which to look.
+ # @param [Integer] line_number The line number at which to look.
# NOTE: The first line in a file is line 1!
# @return [String] The comment
def comment_describing(file, line_number)
@@ -84,7 +84,7 @@ module MethodSource
# Get the first expression from the input.
#
# @param [Array<String>] lines
- # @param [Fixnum] consume A number of lines to automatically
+ # @param [Integer] consume A number of lines to automatically
# consume (add to the expression buffer) without checking for validity.
# @yield a clean-up function to run before checking for complete_expression
# @return [String] a valid ruby expression