Skip to content

Commit

Permalink
module: Load from full path instead of relative path.
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanz01 committed Oct 17, 2017
1 parent b065dc5 commit 4a8da61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/statistics.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'descriptive_statistics'

require_relative './math'
Dir['./lib/statistics/**/*.rb'].each {|file| require file }
require File.dirname(__FILE__) + '/math'
Dir[ File.dirname(__FILE__) + '/statistics/**/*.rb'].each {|file| require file }

module Statistics
# Your code goes here...
Expand Down
2 changes: 1 addition & 1 deletion lib/statistics/distribution.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Dir['./lib/statistics/distribution/**/*.rb'].each {|file| require file }
Dir[File.dirname(__FILE__) + '/distribution/**/*.rb'].each {|file| require file }

module Statistics
module Distribution
Expand Down
2 changes: 1 addition & 1 deletion lib/statistics/statistical_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Dir['./lib/statistics/statistical_test/**/*.rb'].each {|file| require file }
Dir[File.dirname(__FILE__) + '/statistical_test/**/*.rb'].each {|file| require file }

module Statistics
module StatisticalTest
Expand Down

0 comments on commit 4a8da61

Please sign in to comment.