class Cassie::Schema::SchemaLoader

Attributes

source_path[R]

Public Class Methods

new(opts={}) click to toggle source
# File lib/cassie/schema/schema_loader.rb, line 6
def initialize(opts={})
  @source_path = opts[:source_path] || default_source_path
end

Public Instance Methods

load() click to toggle source
# File lib/cassie/schema/schema_loader.rb, line 10
def load
  Kernel.load File.absolute_path(source_path)
end

Protected Instance Methods

default_source_path() click to toggle source
# File lib/cassie/schema/schema_loader.rb, line 16
def default_source_path
  Cassie::Schema.paths[:schema_file]
end