Class: MagicQuery::Schema::Loader
- Inherits:
-
Object
- Object
- MagicQuery::Schema::Loader
- Defined in:
- lib/magic_query/schema/loader.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config) ⇒ Loader
constructor
A new instance of Loader.
- #load ⇒ Object
Constructor Details
#initialize(config) ⇒ Loader
Returns a new instance of Loader.
15 16 17 |
# File 'lib/magic_query/schema/loader.rb', line 15 def initialize(config) @config = config end |
Class Method Details
.load(config) ⇒ Object
11 12 13 |
# File 'lib/magic_query/schema/loader.rb', line 11 def self.load(config) new(config).load end |
Instance Method Details
#load ⇒ Object
19 20 21 22 |
# File 'lib/magic_query/schema/loader.rb', line 19 def load loader = find_loader loader.load end |