Sha256: c6b1bca040ebd76347a053ac0d8bdb5cd6de87ecf3dbcbb785cdb543994f9e48

Contents?: true

Size: 334 Bytes

Versions: 27

Compression:

Stored size: 334 Bytes

Contents

require "toml-rb"
require_relative "toml_document"

module Lutaml
  module Model
    module TomlAdapter
      class TomlRbAdapter < TomlDocument
        def self.parse(toml)
          data = TomlRB.parse(toml)
          new(data)
        end

        def to_toml(*)
          TomlRB.dump(to_h)
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
lutaml-model-0.3.8 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.7 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.6 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.5 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.4 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.3 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.2 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb