class Jimmy::Loaders::Base
Base
class for all file loaders @abstract
Attributes
source[R]
The source file to be loaded. @return Pathname
Public Class Methods
call(file)
click to toggle source
Load the given file. Intended to be used by a {Jimmy::FileMap}. @api private @param [Pathname, String] file Path of the file to load
# File lib/jimmy/loaders/base.rb, line 11 def self.call(file) new(file).load end
new(source)
click to toggle source
@param [Pathname] source The source file to load.
# File lib/jimmy/loaders/base.rb, line 20 def initialize(source) @source = Pathname(source) end
Public Instance Methods
load()
click to toggle source
@return [Jimmy::Schema]
# File lib/jimmy/loaders/base.rb, line 25 def load raise NotImplementedError, "Please implement #load on #{self.class}" end