Sha256: 538fa938a99345b9ebf91ce6965046611a11cf15a8d6f7548ab77c7d3d220a68
Contents?: true
Size: 469 Bytes
Versions: 4
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module DrawioDsl # List of DSL methods for each common shape # :nocov: module DrawioShapes def random(**opts) case rand({{shape_length}}) {{#each shapes}} when {{@index}} {{snake ./type}}(**opts) {{/each}} end end {{#each shapes}} def {{snake ./type}}(id = nil, **opts, &block) builder.add_{{snake ./type}}(id, **opts, &block) end {{/each}} end # :nocov: end
Version data entries
4 entries across 4 versions & 1 rubygems