module FiasReader::ParseLogic::Depth

Public Class Methods

new(options) click to toggle source
Calls superclass method
# File lib/fias_reader/parse_logic/depth.rb, line 6
def initialize(options)
  @depth = 0
  super
end

Public Instance Methods

end_element(name) click to toggle source
Calls superclass method
# File lib/fias_reader/parse_logic/depth.rb, line 16
def end_element(name)
  @depth -= 1
  super
end
start_element(name) click to toggle source
Calls superclass method
# File lib/fias_reader/parse_logic/depth.rb, line 11
def start_element(name)
  @depth += 1
  super
end