Class: DiffResource::ResxParser

Inherits:
XmlParser show all
Defined in:
lib/diff_resource/parser/resx_parser.rb

Instance Method Summary collapse

Methods inherited from XmlParser

#parse, #parse_string

Methods inherited from Parser

#nested_hash_access, #parse, #parse_array, #parse_hash, #parse_string

Constructor Details

#initializeResxParser



4
5
6
# File 'lib/diff_resource/parser/resx_parser.rb', line 4

def initialize
  super({ "root" => "data", "key" => "name", "value" => "value" })
end

Instance Method Details

#parsre_target?(item) ⇒ Boolean



8
9
10
# File 'lib/diff_resource/parser/resx_parser.rb', line 8

def parsre_target? item
  return nested_hash_access(item, "type").nil?
end