Class: MagicQuery::Schema::FileLoader

Inherits:
BaseLoader
  • Object
show all
Defined in:
lib/magic_query/schema/file_loader.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseLoader

#load

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