lib/lutaml/model/toml_adapter/tomlib_adapter.rb
require "tomlib" require_relative "toml_document" module Lutaml module Model module TomlAdapter class TomlibAdapter < TomlDocument def self.parse(toml, _options = {}) data = Tomlib.load(toml) new(data) end def to_toml(*args) Tomlib.dump(to_h, *args) # Tomlib::Generator.new(to_h).toml_str end end end end end
Source Files
- lib/lutaml/model.rb
- lib/lutaml/model/attribute.rb
- lib/lutaml/model/cli.rb
- lib/lutaml/model/comparable_model.rb
- lib/lutaml/model/comparable_nil.rb
- lib/lutaml/model/comparison.rb
- lib/lutaml/model/config.rb
- lib/lutaml/model/constants.rb
- lib/lutaml/model/error.rb
- lib/lutaml/model/error/collection_count_out_of_range_error.rb
- lib/lutaml/model/error/collection_true_missing_error.rb
- lib/lutaml/model/error/incorrect_mapping_argument_error.rb
- lib/lutaml/model/error/invalid_value_error.rb
- lib/lutaml/model/error/multiple_mappings_error.rb
- lib/lutaml/model/error/pattern_not_matched_error.rb
- lib/lutaml/model/error/type/invalid_value_error.rb
- lib/lutaml/model/error/type_error.rb
- lib/lutaml/model/error/type_not_enabled_error.rb
- lib/lutaml/model/error/unknown_adapter_type_error.rb
- lib/lutaml/model/error/unknown_type_error.rb
- lib/lutaml/model/error/validation_error.rb
- lib/lutaml/model/json_adapter.rb
- lib/lutaml/model/json_adapter/json_document.rb
- lib/lutaml/model/json_adapter/json_object.rb
- lib/lutaml/model/json_adapter/multi_json_adapter.rb
- lib/lutaml/model/json_adapter/standard_json_adapter.rb
- lib/lutaml/model/key_value_mapping.rb
- lib/lutaml/model/key_value_mapping_rule.rb
- lib/lutaml/model/loggable.rb
- lib/lutaml/model/mapping_hash.rb
- lib/lutaml/model/mapping_rule.rb
- lib/lutaml/model/schema.rb
- lib/lutaml/model/schema/json_schema.rb
- lib/lutaml/model/schema/json_schema_parser.rb
- lib/lutaml/model/schema/relaxng_schema.rb
- lib/lutaml/model/schema/templates/simple_type.rb
- lib/lutaml/model/schema/xml_compiler.rb
- lib/lutaml/model/schema/xsd_schema.rb
- lib/lutaml/model/schema/yaml_schema.rb
- lib/lutaml/model/schema_location.rb
- lib/lutaml/model/serializable.rb
- lib/lutaml/model/serialize.rb
- lib/lutaml/model/toml_adapter.rb
- lib/lutaml/model/toml_adapter/toml_document.rb
- lib/lutaml/model/toml_adapter/toml_object.rb
- lib/lutaml/model/toml_adapter/toml_rb_adapter.rb
- lib/lutaml/model/toml_adapter/tomlib_adapter.rb
- lib/lutaml/model/type.rb
- lib/lutaml/model/type/boolean.rb
- lib/lutaml/model/type/date.rb
- lib/lutaml/model/type/date_time.rb
- lib/lutaml/model/type/decimal.rb
- lib/lutaml/model/type/float.rb
- lib/lutaml/model/type/hash.rb
- lib/lutaml/model/type/integer.rb
- lib/lutaml/model/type/string.rb
- lib/lutaml/model/type/time.rb
- lib/lutaml/model/type/time_without_date.rb
- lib/lutaml/model/type/value.rb
- lib/lutaml/model/utils.rb
- lib/lutaml/model/validation.rb
- lib/lutaml/model/version.rb
- lib/lutaml/model/xml_adapter.rb
- lib/lutaml/model/xml_adapter/builder/nokogiri.rb
- lib/lutaml/model/xml_adapter/builder/oga.rb
- lib/lutaml/model/xml_adapter/builder/ox.rb
- lib/lutaml/model/xml_adapter/nokogiri_adapter.rb
- lib/lutaml/model/xml_adapter/oga/document.rb
- lib/lutaml/model/xml_adapter/oga/element.rb
- lib/lutaml/model/xml_adapter/oga_adapter.rb
- lib/lutaml/model/xml_adapter/ox_adapter.rb
- lib/lutaml/model/xml_adapter/xml_attribute.rb
- lib/lutaml/model/xml_adapter/xml_document.rb
- lib/lutaml/model/xml_adapter/xml_element.rb
- lib/lutaml/model/xml_adapter/xml_namespace.rb
- lib/lutaml/model/xml_mapping.rb
- lib/lutaml/model/xml_mapping_rule.rb
- lib/lutaml/model/yaml_adapter.rb
- lib/lutaml/model/yaml_adapter/standard_yaml_adapter.rb
- lib/lutaml/model/yaml_adapter/yaml_document.rb
- lib/lutaml/model/yaml_adapter/yaml_object.rb