Class: Trax::Core::FS::CurrentWorkingDirectory
- Includes:
- Enumerable
- Defined in:
- lib/trax/core/fs.rb
Instance Attribute Summary collapse
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #each {|@directory| ... } ⇒ Object
-
#initialize ⇒ CurrentWorkingDirectory
constructor
A new instance of CurrentWorkingDirectory.
Methods included from Enumerable
Constructor Details
#initialize ⇒ CurrentWorkingDirectory
Returns a new instance of CurrentWorkingDirectory.
189 190 191 192 |
# File 'lib/trax/core/fs.rb', line 189 def initialize @path = ::Pathname.new(::Dir.pwd) @directory = ::Trax::Core::FS::Directory.new(@path) end |