* lib/date/format.rb (Format::Bag#method_missing): get rid of

modifying orginal argument.  [ruby-core:11090]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-05-05 07:25:35 +00:00
Родитель 1a89cc308d
Коммит 84daaed844
3 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sat May 5 16:26:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/date/format.rb (Format::Bag#method_missing): get rid of
modifying orginal argument. [ruby-core:11090]
Thu May 3 22:20:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu May 3 22:20:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in, defines.h, eval_load.c (rb_feature_p, rb_provided, * configure.in, defines.h, eval_load.c (rb_feature_p, rb_provided,

Просмотреть файл

@ -118,7 +118,7 @@ class Date
end end
def method_missing(t, *args, &block) def method_missing(t, *args, &block)
t = t.to_s t = "#{t}"
set = t.chomp!('=') set = t.chomp!('=')
t = t.intern t = t.intern
if set if set

Просмотреть файл

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0" #define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-05-03" #define RUBY_RELEASE_DATE "2007-05-05"
#define RUBY_VERSION_CODE 190 #define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20070503 #define RUBY_RELEASE_CODE 20070505
#define RUBY_PATCHLEVEL 0 #define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0 #define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 5 #define RUBY_RELEASE_MONTH 5
#define RUBY_RELEASE_DAY 3 #define RUBY_RELEASE_DAY 5
#ifdef RUBY_EXTERN #ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_version[];