Class: Sitetap::Parser
- Inherits:
-
Object
- Object
- Sitetap::Parser
- Defined in:
- lib/sitetap/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(root_dir) ⇒ Parser
constructor
A new instance of Parser.
- #parse!(selector = nil) ⇒ Object
Constructor Details
#initialize(root_dir) ⇒ Parser
Returns a new instance of Parser.
9 10 11 |
# File 'lib/sitetap/parser.rb', line 9 def initialize(root_dir) @root = root_dir end |
Class Method Details
Instance Method Details
#parse!(selector = nil) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/sitetap/parser.rb', line 18 def parse!(selector = nil) @selector = selector unless selector.nil? verify_directories do_the_loop self end |