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.28 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.27 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.26 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.25 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.24 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.23 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.22 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.21 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.20 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.19 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.18 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.17 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.16 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.15 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.14 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.13 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.12 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.11 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.10 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
lutaml-model-0.3.9 lib/lutaml/model/toml_adapter/toml_rb_adapter.rb