summaryrefslogtreecommitdiffstats
path: root/lib/irb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-29 06:14:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-07-29 06:14:10 +0000
commit0da1ffd32d509d86a89106df0a35bd3f273d2c4e (patch)
treec7c2046d45ef6226d94a7ef28e91942efed2408f /lib/irb
parent4d922415c927f0e5ba09ec5bbf11476d8c66f49b (diff)
downloadruby-0da1ffd32d509d86a89106df0a35bd3f273d2c4e.tar.gz
ruby-0da1ffd32d509d86a89106df0a35bd3f273d2c4e.tar.xz
ruby-0da1ffd32d509d86a89106df0a35bd3f273d2c4e.zip
* numeric.c (num_to_int): default to_int implementaion for every
numeric class. * re.c (rb_reg_quote): initial part of the string was never copied to the quoted string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/extend-command.rb4
-rw-r--r--lib/irb/ruby-lex.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index fd71968c1..cfb2c7c4b 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -104,7 +104,7 @@ module IRB
def EXCB.install_extend_commands
for args in @EXTEND_COMMANDS
- def_extend_command *args
+ def_extend_command(*args)
end
end
@@ -193,7 +193,7 @@ module IRB
def CE.install_extend_commands
for args in @EXTEND_COMMANDS
- def_extend_command *args
+ def_extend_command(*args)
end
end
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index e96edef30..1bf47c123 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -737,7 +737,7 @@ class RubyLex
def identify_identifier
token = ""
if peek(0) =~ /[$@]/
- token.concat (c = getc)
+ token.concat(c = getc)
if c == "@" and peek(0) == "@"
token.concat getc
end