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.
11 12 13 |
# File 'lib/whatzapper/zapper.rb', line 11 def initialize(path) @path = Pathname.new path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
9 10 11 |
# File 'lib/whatzapper/zapper.rb', line 9 def path @path end |
Instance Method Details
#clean_db ⇒ Object
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 |