Class: Pathname::EachFilenameEnumerable
- Includes:
- Enumerable
- Defined in:
- lib/chef/monkey_patches/pathname.rb
Instance Attribute Summary collapse
-
#pathname ⇒ Object
readonly
Returns the value of attribute pathname.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(pathname) ⇒ EachFilenameEnumerable
constructor
A new instance of EachFilenameEnumerable.
Constructor Details
#initialize(pathname) ⇒ EachFilenameEnumerable
Returns a new instance of EachFilenameEnumerable.
23 24 25 |
# File 'lib/chef/monkey_patches/pathname.rb', line 23 def initialize(pathname) @pathname = pathname end |
Instance Attribute Details
#pathname ⇒ Object (readonly)
Returns the value of attribute pathname.
21 22 23 |
# File 'lib/chef/monkey_patches/pathname.rb', line 21 def pathname @pathname end |
Instance Method Details
#each(&block) ⇒ Object
27 28 29 |
# File 'lib/chef/monkey_patches/pathname.rb', line 27 def each(&block) @pathname.old_each_filename(&block) end |