mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
* parse.y (yylex): fixed 'print CGI::bar() {}, "\n"' syntax
breakage, adding new lex_state status. sigh. [new] * file.c (rb_file_s_unlink): should not allow if $SAFE >= 2. * range.c (Init_Range): define "to_ary". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df2c6aef1e
commit
353650e6b4
5 changed files with 30 additions and 12 deletions
|
@ -1188,15 +1188,15 @@ class TkVariable
|
|||
end
|
||||
|
||||
def to_i
|
||||
Integer(number(value))
|
||||
number(value).to_i
|
||||
end
|
||||
|
||||
def to_f
|
||||
Float(number(value))
|
||||
number(value).to_f
|
||||
end
|
||||
|
||||
def to_s
|
||||
String(string(value))
|
||||
string(value).to_s
|
||||
end
|
||||
|
||||
def inspect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue