ruby-changes:12838
From: tadf <ko1@a...>
Date: Mon, 17 Aug 2009 23:47:19 +0900 (JST)
Subject: [ruby-changes:12838] Ruby:r24570 (trunk): * lib/date/delta.rb: removed require 'date'. added to_c.
tadf 2009-08-17 23:46:55 +0900 (Mon, 17 Aug 2009) New Revision: 24570 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24570 Log: * lib/date/delta.rb: removed require 'date'. added to_c. Modified files: trunk/ChangeLog trunk/lib/date/delta.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 24569) +++ ChangeLog (revision 24570) @@ -1,3 +1,7 @@ +Mon Aug 17 23:45:40 2009 Tadayoshi Funaba <tadf@d...> + + * lib/date/delta.rb: removed require 'date'. added to_c. + Mon Aug 17 14:35:03 2009 Nobuyoshi Nakada <nobu@r...> * parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string): Index: lib/date/delta.rb =================================================================== --- lib/date/delta.rb (revision 24569) +++ lib/date/delta.rb (revision 24570) @@ -1,6 +1,5 @@ # delta.rb: Written by Tadayoshi Funaba 2004-2009 -require 'date' require 'date/delta/parser' class Date @@ -375,6 +374,7 @@ def to_i() dx_conv0(:to_i) end def to_f() dx_conv0(:to_f) end def to_r() dx_conv0(:to_r) end + def to_c() @delta end alias_method :to_int, :to_i -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/