Sha256: dcda1c2f535449a35c3eb88c0500ad222cd21f9b6bdda9b856e2340504a7c8a0

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core::Shape
    
    # @private
    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

1 entries across 1 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/shape/basic/internal.rb