Class: Cassie::Schema::SchemaLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/cassie/schema/schema_loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ SchemaLoader

Returns a new instance of SchemaLoader.



6
7
8
# File 'lib/cassie/schema/schema_loader.rb', line 6

def initialize(opts={})
  @source_path = opts[:source_path] || default_source_path
end

Instance Attribute Details

#source_pathObject (readonly)

Returns the value of attribute source_path.



3
4
5
# File 'lib/cassie/schema/schema_loader.rb', line 3

def source_path
  @source_path
end

Instance Method Details

#loadObject



10
11
12
# File 'lib/cassie/schema/schema_loader.rb', line 10

def load
  Kernel.load File.absolute_path(source_path)
end