lib/tty/prompt/converters.rb in tty-prompt-0.10.0 vs lib/tty/prompt/converters.rb in tty-prompt-0.10.1

- old
+ new

@@ -64,16 +64,16 @@ converter(:regexp) do |input| Regexp.new(input) end converter(:file) do |input| - directory = File.expand_path(File.dirname($0)) - File.open(File.join(directory, input)) + directory = ::File.expand_path(::File.dirname($0)) + ::File.open(::File.join(directory, input)) end converter(:path) do |input| - directory = File.expand_path(File.dirname($0)) - Pathname.new(File.join(directory, input)) + directory = ::File.expand_path(::File.dirname($0)) + Pathname.new(::File.join(directory, input)) end converter(:char) do |input| String(input).chars.to_a[0] end