Sha256: 74981a4ca785fe4681c57353ae2f1717b2505c2bab20fd89a377200907fb86dd

Contents?: true

Size: 296 Bytes

Versions: 2

Compression:

Stored size: 296 Bytes

Contents

class Prawn::SVG::Elements::Container < Prawn::SVG::Elements::Base
  def parse
    state.disable_drawing = true if name == "clipPath"
  end

  def apply
    process_child_elements

    raise SkipElementQuietly if %w(symbol defs clipPath).include?(name)
  end

  def container?
    true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prawn-svg-0.23.1 lib/prawn/svg/elements/container.rb
prawn-svg-0.23.0 lib/prawn/svg/elements/container.rb