Sha256: 15c5635323da009ad4c686ab122b41ed377fc8e0183827cd03470b6573b7d984

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true

module DrawioDsl
  module Schema
    # Text represents lines, usually used for drawing a connection between two elements.
    class Line < Shape
      class << self
        def configure_as(key)
          configure_shape(key, :line)
        end
      end

      attr_accessor :source
      attr_accessor :target

      def apply_defaults(args)
        super(args)

        @source = args[:source]
        @target = args[:target]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
drawio_dsl-0.11.1 lib/drawio_dsl/schema/line.rb
drawio_dsl-0.11.0 lib/drawio_dsl/schema/line.rb
drawio_dsl-0.10.1 lib/drawio_dsl/schema/line.rb
drawio_dsl-0.10.0 lib/drawio_dsl/schema/line.rb
drawio_dsl-0.9.0 lib/drawio_dsl/schema/line.rb