summaryrefslogtreecommitdiff
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
commit89dbf99bacac40fa17045c8322f20fc4c9c8d070 (patch)
treec7c2046d45ef6226d94a7ef28e91942efed2408f /lib/irb
parent448610abec3558780d541606261a090d279e26be (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 fd71968..cfb2c7c4 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 e96edef..1bf47c1 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