Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autoload HashWithStructAccess and Configuration from Confstruct module

  • Loading branch information...
commit 3008d340ad8701039aeabc1723692626fb025653 1 parent 51fd56b
@mbklein mbklein authored
View
7 lib/confstruct.rb
@@ -1,3 +1,8 @@
-module Confstruct
+require 'confstruct/utils'
+
+module Confstruct
+ autoload :HashWithStructAccess, 'confstruct/hash_with_struct_access'
+ autoload :Configuration, 'confstruct/configuration'
+
VERSION = '0.1.0'
end
View
1  spec/confstruct/configuration_spec.rb
@@ -1,5 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-require 'confstruct/configuration'
describe Confstruct::Configuration do
View
1  spec/confstruct/hash_with_struct_access_spec.rb
@@ -1,5 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-require 'confstruct/hash_with_struct_access'
describe Confstruct::HashWithStructAccess do
View
1  spec/confstruct/utils_spec.rb
@@ -1,5 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-require 'confstruct/utils'
describe "Kernel.eval_or_yield" do
before :all do
Please sign in to comment.
Something went wrong with that request. Please try again.