Class: Whatzapper::Zapper
- Inherits:
-
Object
- Object
- Whatzapper::Zapper
- Defined in:
- lib/whatzapper/zapper.rb
Constant Summary collapse
- WTFS =
/(fi|if|ff|fl)/
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #clean_db ⇒ Object
-
#initialize(path) ⇒ Zapper
constructor
A new instance of Zapper.
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
#path ⇒ Object
Returns the value of attribute path.
10 11 12 |
# File 'lib/whatzapper/zapper.rb', line 10 def path @path end |
Instance Method Details
#clean_db ⇒ Object
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 |