Sha256: 1bb3e1a9650bcec0f3d1118027a754866704aad19bae0d0dc561c0da8f1f6eb5
Contents?: true
Size: 898 Bytes
Versions: 1
Compression:
Stored size: 898 Bytes
Contents
# frozen_string_literal: true require "lutaml/model" require_relative "li" module Rfcxml module V3 class Ol < Lutaml::Model::Serializable attribute :anchor, :string attribute :type, :string, default: -> { "1" } attribute :start, :string, default: -> { "1" } attribute :group, :string attribute :spacing, :string, default: -> { "normal" } attribute :indent, :string, default: -> { "adaptive" } attribute :pn, :string attribute :li, Li, collection: true xml do root "ol" map_attribute "anchor", to: :anchor map_attribute "type", to: :type map_attribute "start", to: :start map_attribute "group", to: :group map_attribute "spacing", to: :spacing map_attribute "indent", to: :indent map_attribute "pn", to: :pn map_element "li", to: :li end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rfcxml-0.2.0 | lib/rfcxml/v3/ol.rb |