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.



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

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

Instance Attribute Details

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#clean_dbObject



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

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