зеркало из https://github.com/github/ruby.git
* ext/ripper/lib/ripper/lexer.rb: [DOC] use lower case version of core
classes when referring to return value, since we aren't directly talking about the class. Patch by Jonathan Jackson [Bug #9483] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6215756228
Коммит
9699d0ddf4
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Feb 7 21:54:53 2014 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
|
* ext/ripper/lib/ripper/lexer.rb: [DOC] use lower case version of core
|
||||||
|
classes when referring to return value, since we aren't directly
|
||||||
|
talking about the class. Patch by Jonathan Jackson [Bug #9483]
|
||||||
|
|
||||||
Fri Feb 7 05:28:38 2014 Eric Wong <e@80x24.org>
|
Fri Feb 7 05:28:38 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
* constant.h: reduce rb_const_entry_t size on 64-bit
|
* constant.h: reduce rb_const_entry_t size on 64-bit
|
||||||
|
|
|
@ -12,7 +12,7 @@ require 'ripper/core'
|
||||||
|
|
||||||
class Ripper
|
class Ripper
|
||||||
|
|
||||||
# Tokenizes the Ruby program and returns an Array of String.
|
# Tokenizes the Ruby program and returns an array of strings.
|
||||||
#
|
#
|
||||||
# p Ripper.tokenize("def m(a) nil end")
|
# p Ripper.tokenize("def m(a) nil end")
|
||||||
# # => ["def", " ", "m", "(", "a", ")", " ", "nil", " ", "end"]
|
# # => ["def", " ", "m", "(", "a", ")", " ", "nil", " ", "end"]
|
||||||
|
@ -21,7 +21,7 @@ class Ripper
|
||||||
Lexer.new(src, filename, lineno).tokenize
|
Lexer.new(src, filename, lineno).tokenize
|
||||||
end
|
end
|
||||||
|
|
||||||
# Tokenizes the Ruby program and returns an Array of an Array,
|
# Tokenizes the Ruby program and returns an array of an array,
|
||||||
# which is formatted like <code>[[lineno, column], type, token]</code>.
|
# which is formatted like <code>[[lineno, column], type, token]</code>.
|
||||||
#
|
#
|
||||||
# require 'ripper'
|
# require 'ripper'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче