Skip to content

Commit

Permalink
Merge pull request #20 from ruby/require_relative
Browse files Browse the repository at this point in the history
Prefer require_relative, it's a little bit faster.
  • Loading branch information
sonots authored Mar 21, 2019
2 parents 5c4a7c2 + 1e2aab4 commit 9168569
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 9168569

Please sign in to comment.