Class: Pathname
Defined Under Namespace
Classes: EachFilenameEnumerable
Constant Summary collapse
- @@old_each_filename =
instance_method(:each_filename)
Instance Method Summary collapse
Instance Method Details
#each_filename(&block) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/chef/monkey_patches/pathname.rb', line 7 def each_filename(&block) if block_given? EachFilenameEnumerable.new(self).each(&block) else EachFilenameEnumerable.new(self) end end |
#old_each_filename(&block) ⇒ Object
15 16 17 |
# File 'lib/chef/monkey_patches/pathname.rb', line 15 def old_each_filename(&block) @@old_each_filename.bind(self).call(&block) end |