Skip to content

Commit

Permalink
Prefer require_relative, it's a little bit faster.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 21, 2019
1 parent 5cce85a commit 1e2aab4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions lib/logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
# A simple system for logging messages. See Logger for more documentation.

require 'monitor'
require 'logger/version'
require 'logger/formatter'
require 'logger/log_device'
require 'logger/severity'
require 'logger/errors'

require_relative 'logger/version'
require_relative 'logger/formatter'
require_relative 'logger/log_device'
require_relative 'logger/severity'
require_relative 'logger/errors'

# == Description
#
Expand Down
2 changes: 1 addition & 1 deletion lib/logger/log_device.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'logger/period'
require_relative 'period'

class Logger
# Device used for logging messages.
Expand Down

0 comments on commit 1e2aab4

Please sign in to comment.