Sha256: 18f5629a6082b3073a261113dd4c2c47781d57f3b63a8ff98bda78c810d920e5

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

# coding: utf-8

module Thinreports
  module Core::Shape

    class Text::Internal < Basic::Internal
      # Delegate to Format's methods
      format_delegators :svg_content, :text, :box

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

      def type_of?(type_name)
        type_name == :text
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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