Class: MagicQuery::Schema::FileLoader
- Inherits:
-
BaseLoader
- Object
- BaseLoader
- MagicQuery::Schema::FileLoader
- Defined in:
- lib/magic_query/schema/file_loader.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config, path) ⇒ FileLoader
constructor
A new instance of FileLoader.
Methods inherited from BaseLoader
Constructor Details
#initialize(config, path) ⇒ FileLoader
10 11 12 13 |
# File 'lib/magic_query/schema/file_loader.rb', line 10 def initialize(config, path) super(config) @path = path end |
Class Method Details
.can_load?(path) ⇒ Boolean
15 16 17 |
# File 'lib/magic_query/schema/file_loader.rb', line 15 def self.can_load?(path) path && File.exist?(path) end |