Method: ToadSpawn::Base#initialize
- Defined in:
- lib/toad_spawn/base.rb
#initialize(path) ⇒ Base
Returns a new instance of Base.
3 4 5 6 7 8 9 |
# File 'lib/toad_spawn/base.rb', line 3 def initialize(path) raise "Directory does not exist" unless File.exist?(path) raise "Not a directory" unless File.directory?(path) raise "Not writable" unless File.writable?(path) @path = path flush end |