Project

General

Profile

Misc #10500 ยป 0001-Improve-Pathname.glob-documentation-example.patch

tj (Thibault Jouan), 11/12/2014 07:56 PM

View differences:

ext/pathname/pathname.c
/*
* Returns or yields Pathname objects.
*
* Pathname.glob("config/" "*.rb")
* #=> [#<Pathname:config/environment.rb>, #<Pathname:config/routes.rb>, ..]
* config_rb_files = File.join('config', '*.rb')
* Pathname.glob(config_rb_files)
* #=> [#<Pathname:config/environment.rb>, #<Pathname:config/routes.rb>, ...]
*
* See Dir.glob.
*/
    (1-1/1)