Module: ShellHelpers::PathnameExt::FileUtilsWrapper

Extended by:
FUClass
Included in:
ShellHelpers::PathnameExt
Defined in:
lib/shell_helpers/pathname.rb

Instance Attribute Summary

Attributes included from FUClass

#fu_class

Instance Method Summary collapse

Instance Method Details

#chdir(*args) ⇒ Object Also known as: cd

we rewrap chdir this way, so that the argument stays a SH::Pathname



406
407
408
409
410
# File 'lib/shell_helpers/pathname.rb', line 406

def chdir(*args)
	self.class.fu_class.public_send(:chdir, self, *args) do |dir|
		yield self.class.new(dir)
	end
end