Sha256: 5201ea696db6cf3440098fc5d3e46c6d4bf90f051d8b073dcf510efec6411c84

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

# frozen_string_literal: true

module Thinreports
  module BasicReport
    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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.14.2 lib/thinreports/basic_report/core/shape/basic/internal.rb
thinreports-0.14.1 lib/thinreports/basic_report/core/shape/basic/internal.rb
thinreports-0.14.0 lib/thinreports/basic_report/core/shape/basic/internal.rb
thinreports-0.13.1 lib/thinreports/basic_report/core/shape/basic/internal.rb
thinreports-0.13.0 lib/thinreports/basic_report/core/shape/basic/internal.rb