Sha256: 83024a7ef69901c7e614922f2acf9f515d1a25f2cc78163a30424f5d6019d4fb

Contents?: true

Size: 520 Bytes

Versions: 7

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module Core
    module Shape
      module Basic
        class Internal < Base::Internal
          # Delegate to Format's methods
          format_delegators :id, :type

          def style
            @style ||= Style::Graphic.new(format)
          end

          def type_of?(type_name)
            [:basic, type].include?(type_name)
          end

          def identifier
            "#{id}#{style.identifier}"
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thinreports-0.12.1 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.12.0 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.11.0 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.10.3 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.10.2 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.10.1 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.10.0 lib/thinreports/core/shape/basic/internal.rb