lib/tty/editor.rb in tty-editor-0.1.1 vs lib/tty/editor.rb in tty-editor-0.1.2
- old
+ new
@@ -83,11 +83,11 @@
# @return [String]
# the file path
#
# @api private
def file_or_temp_path(filename)
- FileTest.file?(filename) ? filename : tempfile_path(filename)
+ ::FileTest.file?(filename) ? filename : tempfile_path(filename)
end
# Finds command using a configured command(s) or detected shell commands.
#
# @param [Array[String]] commands
@@ -121,10 +121,10 @@
#
# @return [Boolean]
#
# @api public
def windows?
- File::ALT_SEPARATOR == "\\"
+ ::File::ALT_SEPARATOR == "\\"
end
# Escape file path
#
# @api private