8 lines
113 B
Ruby
8 lines
113 B
Ruby
|
class Pathname
|
||
|
class << self
|
||
|
def for(path)
|
||
|
path.is_a?(Pathname) ? path : new(path)
|
||
|
end
|
||
|
end
|
||
|
end
|