Sha256: 6fe659b423dbdfa1b17f59849d39f5f0d2aac7d182bd6296deb57e2bc8bd81c8

Contents?: true

Size: 337 Bytes

Versions: 13

Compression:

Stored size: 337 Bytes

Contents

class Prawn::SVG::Elements::Container < Prawn::SVG::Elements::Base
  def parse
    set_display_none if name == 'symbol' && !state.inside_use
    set_display_none if name == 'defs'
  end

  def container?
    true
  end

  private

  def set_display_none
    properties.display = 'none'
    computed_properties.display = 'none'
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
prawn-svg-0.36.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.35.1 lib/prawn/svg/elements/container.rb
prawn-svg-0.35.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.34.2 lib/prawn/svg/elements/container.rb
prawn-svg-0.34.1 lib/prawn/svg/elements/container.rb
prawn-svg-0.34.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.33.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.32.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.31.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.30.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.29.1 lib/prawn/svg/elements/container.rb
prawn-svg-0.29.0 lib/prawn/svg/elements/container.rb
prawn-svg-0.28.0 lib/prawn/svg/elements/container.rb