lib/faster_path.rb in faster_path-0.1.6 vs lib/faster_path.rb in faster_path-0.1.7
- old
+ new
@@ -33,10 +33,14 @@
def self.basename(pth, ext="")
Rust.basename(pth, ext)
end
+ def self.add_trailing_separator(pth)
+ Rust.add_trailing_separator(pth)
+ end
+
# EXAMPLE
#def self.one_and_two
# Rust.one_and_two.to_a
#end
@@ -64,9 +68,10 @@
attach_function :both_are_blank, [ :string, :string ], :bool
attach_function :basename, [ :string, :string ], :string
attach_function :dirname, [ :string ], :string
attach_function :basename_for_chop, [ :string ], :string # decoupling behavior
attach_function :dirname_for_chop, [ :string ], :string # decoupling behavior
+ attach_function :add_trailing_separator, [ :string ], :string
# EXAMPLE
#attach_function :one_and_two, [], FromRustArray.by_value
end
private_constant :Rust