eval.c (f_current_dirname): add the new method for Kernel. This method almotst same as File.dirname(FILE). One different behavior is it returns nil when FILE returns nil. [Feature #3346]
NEWS: ditto
test/ruby/test_method.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
eval.c (f_current_dirname): add the new method for Kernel.
This method almotst same as File.dirname(FILE). One
different behavior is it returns nil when FILE returns nil.
[Feature #3346]
NEWS: ditto
test/ruby/test_method.rb: related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e