Class: Whatzapper::Zapper

Inherits:
Object
  • Object
show all
Defined in:
lib/whatzapper/zapper.rb

Constant Summary collapse

WTFS =
/(fi|if|ff|fl)/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Zapper

Returns a new instance of Zapper.



12
13
14
# File 'lib/whatzapper/zapper.rb', line 12

def initialize(path)
  @path = Pathname.new path
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



10
11
12
# File 'lib/whatzapper/zapper.rb', line 10

def path
  @path
end

Instance Method Details

#clean_dbObject



16
17
18
19
20
# File 'lib/whatzapper/zapper.rb', line 16

def clean_db
  work_in_writable_space do |working_db|
    zap(working_db)
  end
end