Sha256: 71365bf96377291c684d50f29db6a84e88cfecd648a1ced6b898a317c138dc1a

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

require "edifact_rails/parser"
require "edifact_rails/formats"
require "edifact_rails/exceptions"

module EdifactRails
  DEFAULT_SPECIAL_CHARACTERS = {
    component_data_element_seperator: ":",
    data_element_seperator: "+",
    decimal_notation: ".",
    escape_character: "?",
    segment_seperator: "'"
  }.freeze

  def self.parse(string)
    parser = EdifactRails::Parser.new
    parser.parse(string)
  end

  def self.parse_file(file_path)
    parse(File.read(file_path))
  end

  def self.special_characters(string = "")
    parser = EdifactRails::Parser.new
    parser.special_characters(string)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
edifact_rails-2.0.0 lib/edifact_rails.rb