Sha256: d8a04b0c9ddf453c850e0f2cc61e86ad89dfa15ced4c6e9303472a922e764140

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    class Basic::Internal < Base::Internal
      # Delegate to Format's methods
      format_delegators :id, :svg_tag, :type

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

      def type_of?(type_name)
        ['s-basic', self.type].include?("s-#{type_name}")
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.8.2 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.8.1 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.8.0 lib/thinreports/core/shape/basic/internal.rb