Class: Prick::PrickFile

Inherits:
Object
  • Object
show all
Defined in:
lib/prick/state.rb

Direct Known Subclasses

PrickVersion, SchemaVersion, State

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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

Returns:

  • (Boolean)


8
# File 'lib/prick/state.rb', line 8

def exist?() File.exist?(path) end