class Upstream::PathFinder
Attributes
raw_path[R]
Public Class Methods
get_path(arg)
click to toggle source
# File lib/upstream.rb, line 30 def self.get_path(arg) new(arg).parse end
new(arg)
click to toggle source
# File lib/upstream.rb, line 26 def initialize(arg) @raw_path = arg end
Public Instance Methods
parse()
click to toggle source
# File lib/upstream.rb, line 34 def parse if raw_path == '.' `pwd`.chomp else raw_path end end