Class: Brigfile
- Inherits:
-
Object
- Object
- Brigfile
- Defined in:
- lib/brigfile.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(path) ⇒ Brigfile
constructor
A new instance of Brigfile.
Constructor Details
#initialize(path) ⇒ Brigfile
Returns a new instance of Brigfile.
4 5 6 7 |
# File 'lib/brigfile.rb', line 4 def initialize(path) @path = path raise "Brigfile does not exist." unless File.exists?(@path) end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
2 3 4 |
# File 'lib/brigfile.rb', line 2 def path @path end |