Skip to content
Snippets Groups Projects
Commit c9b15da9 authored by Piotr Murach's avatar Piotr Murach
Browse files

Change to ensure all standard libs use global namespace

parent 5a7cec10
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ require_relative 'font/version'
module TTY
class Font
FONTS_PATH = Pathname.new(::File.join(__dir__, 'font'))
FONTS_PATH = ::Pathname.new(::File.join(__dir__, 'font'))
def initialize(font = :standard, **options)
@font = font
......@@ -80,7 +80,7 @@ module TTY
#
# @api private
def load_font(font_path)
YAML.load_file(font_path)
::YAML.load_file(font_path)
rescue Errno::ENOENT
raise ArgumentError, "Font '#{File.basename(font_path)}' not found"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment