Sha256: dcd780cee5aea914abd4a00073ee26e81d12abdeef11762d844bfc6da821fa56

Contents?: true

Size: 350 Bytes

Versions: 9

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

# :nocov:
module DrawioDsl
  # DrawioDsl is a DSL for draw-io diagrams.
  module DomBuilderShapes
    {{#each shapes}}

    def add_{{snake ./type}}(**opts)
      {{snake ./type}} = DrawioDsl::Schema::{{camel ./type}}.new(current_page, **opts)
      add_shape({{snake ./type}})
    end
    {{/each}}
  end
end
# :nocov:

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
drawio_dsl-0.6.0 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.7 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.6 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.5 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.4 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.3 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.2 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.1 .builders/.templates/basic/dom_builder_shapes.rb
drawio_dsl-0.5.0 .builders/.templates/basic/dom_builder_shapes.rb