Class: Pathname

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/pathname.rb

Overview

Provides extensions to the Pathname class provided by Ruby's standard Library

Instance Method Summary (collapse)

Instance Method Details

- (Pathname) /(path)

Appends a path to this path and expands it

Parameters:

  • path (#to_s)

    The path to append

Returns:



16
17
18
# File 'lib/core_ext/pathname.rb', line 16

def /(path)
  (self + path).expand_path
end