Prawn::Format::Instructions::TagClose

Attributes

tag[R]

Public Class Methods

close(state, tag, draw_state) click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 9
def self.close(state, tag, draw_state)
  closer = new(state, tag)
  closer.draw(state.document, draw_state)
end
new(state, tag) click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 16
def initialize(state, tag)
  super(state)
  @tag = tag
end

Public Instance Methods

[](property) click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 21
def [](property)
  @tag[:style][property]
end
break?() click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 32
def break?
  force_break?
end
draw(document, draw_state, options={}) click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 25
def draw(document, draw_state, options={})
  (@tag[:effects] || []).each do |effect|
    effect.finish(document, draw_state)
    draw_state[:pending_effects].delete(effect)
  end
end
end_verbatim?() click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 44
def end_verbatim?
  @tag[:style][:white_space] == :pre
end
force_break?() click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 40
def force_break?
  @tag[:style][:display] == :break
end
style() click to toggle source
# File lib/prawn/format/instructions/tag_close.rb, line 36
def style
  @tag[:style]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.