lib/rio/if/dir.rb in rio-0.3.6 vs lib/rio/if/dir.rb in rio-0.3.7
- old
+ new
@@ -53,21 +53,21 @@
# rio('/tmp/data/mydata').delete!.mkpath.chdir {
# # the working directory here is /tmp/data/mydata
# }
# # the working directory here is /home
#
- def chdir(&block) target.chdir(&block) end
+ def chdir(&block) target.chdir(&block);self end
# Calls Find#find
#
# Uses Find#find to find all entries recursively for a Rio that
# specifies a directory. Note that there are other ways to recurse through
# a directory structure using a Rio. See Rio#each and Rio#all.
#
# Calls the block passing a Rio for each entry found. The Rio inherits
- # attrubutes from the directory Rio.
+ # file attrubutes from the directory Rio.
#
# Returns itself
#
# rio('adir').find { |entrio| puts "#{entrio}: #{entrio.file?}" }
#