Class: Cassie::Schema::SchemaLoader
- Defined in:
- lib/cassie/schema/schema_loader.rb
Instance Attribute Summary collapse
-
#source_path ⇒ Object
readonly
Returns the value of attribute source_path.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ SchemaLoader
constructor
A new instance of SchemaLoader.
- #load ⇒ Object
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_path ⇒ Object (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
#load ⇒ Object
10 11 12 |
# File 'lib/cassie/schema/schema_loader.rb', line 10 def load Kernel.load File.absolute_path(source_path) end |