lib/rio/doc/HOWTO.rb in rio-0.4.1 vs lib/rio/doc/HOWTO.rb in rio-0.4.2
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===============================================================================
-# Copyright (c) 2005,2006,2007 Christopher Kleckner
+# Copyright (c) 2005,2006,2007,2008 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -312,14 +312,20 @@
# method 4
array = ario.entries('*.txt').norecurse('.svn').to_a
# method 5
array = ario.norecurse('.svn')['*.txt']
-* Put all directories (recursively) into an array
+* Put all directories into an array
# method 1
array = ario.dirs[]
# method 2
array = ario.dirs.to_a
+
+* Put all directories (recursively) into an array
+ # method 1
+ array = ario.all.dirs[]
+ # method 2
+ array = ario.all.dirs.to_a
* Put all entries (recursively) into an array, but limit the depth of recursion to 2
# method 1
array = ario.norecurse(3).to_a