Sha256: cf1fde19573e34dbcdbc6c9671714e8fe06a354c43c824959b01263d2ddce4af
Contents?: true
Size: 478 Bytes
Versions: 27
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true module Lutaml module Model module YamlAdapter # Base class for YAML objects class YamlObject attr_reader :attributes def initialize(attributes = {}) @attributes = attributes end def [](key) @attributes[key] end def []=(key, value) @attributes[key] = value end def to_h @attributes end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems