Class: Racket::Utils::FileSystem::PathBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/racket/utils/file_system.rb

Overview

Build path in the filesystem.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



54
55
56
# File 'lib/racket/utils/file_system.rb', line 54

def path
  @path
end

Class Method Details

.to_pathname(root_dir, *args) ⇒ Pathname

Creates a new instance of PathBuilder using args and then returning the final path as a Pathname.

Parameters:

  • args (Array)

Returns:

  • (Pathname)


50
51
52
# File 'lib/racket/utils/file_system.rb', line 50

def self.to_pathname(root_dir, *args)
  new(root_dir, args).path
end