Class: Framework::Root

Inherits:
String
  • Object
show all
Defined in:
lib/framework/root.rb

Instance Method Summary collapse

Constructor Details

#initialize(path = Dir.pwd) ⇒ Root

Returns a new instance of Root.

Parameters:

  • path (String) (defaults to: Dir.pwd)


5
6
7
8
# File 'lib/framework/root.rb', line 5

def initialize(path=Dir.pwd)
  super(path)
  self.freeze
end

Instance Method Details

#inspectObject



16
17
18
# File 'lib/framework/root.rb', line 16

def inspect
  to_s
end

#join(*args) ⇒ String

Parameters:

  • args (Array<String>)

Returns:

  • (String)


12
13
14
# File 'lib/framework/root.rb', line 12

def join(*args)
  File.join(self, *args)
end

#to_sObject



20
21
22
# File 'lib/framework/root.rb', line 20

def to_s
  self
end