Sha256: 1a0b84c4fa688a04b876af1a44640f81466865226fda4fbb582167d235a64b14

Contents?: true

Size: 395 Bytes

Versions: 14

Compression:

Stored size: 395 Bytes

Contents

module BrInvoicesPdf
  module Cfe
    module Parser
      module BaseParser
        module_function

        def locate_element(xml, path)
          element = xml.locate(path).first
          element.text if element
        end

        def node_locate(element, path)
          value = element.nodes.first.locate(path).first
          value.text if value
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
br_invoices_pdf-0.2.6 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.6.alpha.18 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.5.alpha.17 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.5 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.5.alpha.16 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.4 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.4.alpha.15 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.4.alpha.14 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.3 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.2 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.1 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.0 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.0.alpha.13 lib/br_invoices_pdf/cfe/parser/base_parser.rb
br_invoices_pdf-0.2.0.alpha.12 lib/br_invoices_pdf/cfe/parser/base_parser.rb