This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Pathname
|
||||
|
||||
# Alternate to Pathname#new.
|
||||
#
|
||||
# Pathname['/usr/share']
|
||||
#
|
||||
# Returns [Pathname]
|
||||
|
||||
def self.[](path)
|
||||
new(path)
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user