module FiasReader::ParseLogic::Rows
Public Class Methods
new(options)
click to toggle source
Calls superclass method
# File lib/fias_reader/parse_logic/rows.rb, line 6 def initialize(options) @rows_enabled = true if @options[:rows].respond_to? :call super end
Public Instance Methods
end_element(name)
click to toggle source
Calls superclass method
# File lib/fias_reader/parse_logic/rows.rb, line 19 def end_element(name) if @rows_enabled && @depth == 1 @options[:rows].call(@row) if @row @row = nil end super end
start_element(name)
click to toggle source
Calls superclass method
# File lib/fias_reader/parse_logic/rows.rb, line 11 def start_element(name) if @rows_enabled && @depth == 2 @row = {} @skip = false end super end