Class: Slodd::Local
- Inherits:
-
Object
- Object
- Slodd::Local
- Defined in:
- lib/slodd/local.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Local
constructor
A new instance of Local.
- #schema ⇒ Object
Constructor Details
#initialize(attrs) ⇒ Local
Returns a new instance of Local.
6 7 8 |
# File 'lib/slodd/local.rb', line 6 def initialize(attrs) self.path = attrs.fetch(:path) end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/slodd/local.rb', line 4 def path @path end |
Instance Method Details
#schema ⇒ Object
10 11 12 |
# File 'lib/slodd/local.rb', line 10 def schema File.read(path) end |