Skip to content

Commit

Permalink
Use require_relative where possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
lottlizard committed Mar 25, 2015
1 parent 0b19fa6 commit a805ae0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions adapter/main.rb
@@ -1,6 +1,6 @@
require './encrypter'
require './decrypter'
require './string_io_adapter'
require_relative 'encrypter'
require_relative 'decrypter'
require_relative 'string_io_adapter'

reader = File.open('message.txt')
writer = File.open('message.encrypted','w')
Expand Down
2 changes: 1 addition & 1 deletion adapter/runtime_modifications/british_text_object.rb
@@ -1,4 +1,4 @@
class BritishTextObject
class BritishTextObject < TextObject
attr_reader :string, :size_mm, :colour

# ...
Expand Down
6 changes: 3 additions & 3 deletions adapter/runtime_modifications/main.rb
@@ -1,6 +1,6 @@
require './renderer'
require './text_object'
require './british_text_object'
require_relative 'renderer'
require_relative 'text_object'
require_relative 'british_text_object'

# Extend the BritishTexObject to include the methods
# that the Renderer class requires
Expand Down

0 comments on commit a805ae0

Please sign in to comment.