Sha256: 2c712742e3489884ebbd378dab261060651f0e5766ec756c4a8a25e3a3973f7a

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinreports-0.7.6 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.7.5 lib/thinreports/core/shape/basic/internal.rb
thinreports-0.7.0 lib/thinreports/core/shape/basic/internal.rb