Class: Prick::PrickFile
- Inherits:
-
Object
- Object
- Prick::PrickFile
- Defined in:
- lib/prick/state.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #exist? ⇒ Boolean
-
#initialize(path) ⇒ PrickFile
constructor
A new instance of PrickFile.
Constructor Details
#initialize(path) ⇒ PrickFile
Returns a new instance of PrickFile.
7 |
# File 'lib/prick/state.rb', line 7 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/prick/state.rb', line 6 def path @path end |
Instance Method Details
#exist? ⇒ Boolean
8 |
# File 'lib/prick/state.rb', line 8 def exist?() File.exist?(path) end |