Class: Pathname::EachFilenameEnumerable

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/chef/monkey_patches/pathname.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathnameObject (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