Module: FiasReader::ParseLogic::Depth
- Includes:
- Abstract
- Defined in:
- lib/fias_reader/parse_logic/depth.rb
Instance Method Summary collapse
Instance Method Details
#end_element(name) ⇒ Object
16 17 18 19 |
# File 'lib/fias_reader/parse_logic/depth.rb', line 16 def end_element(name) @depth -= 1 super end |
#initialize(options) ⇒ Object
6 7 8 9 |
# File 'lib/fias_reader/parse_logic/depth.rb', line 6 def initialize() @depth = 0 super end |
#start_element(name) ⇒ Object
11 12 13 14 |
# File 'lib/fias_reader/parse_logic/depth.rb', line 11 def start_element(name) @depth += 1 super end |