| Class | Prawn::Format::Instructions::TagClose |
| In: |
lib/prawn/format/instructions/tag_close.rb
lib/prawn/format/instructions/tag_close.rb |
| Parent: | Base |
| tag | [R] | |
| tag | [R] |
# File lib/prawn/format/instructions/tag_close.rb, line 10
10: def self.close(state, tag, draw_state)
11: closer = new(state, tag)
12: closer.draw(state.document, draw_state)
13: end
# File lib/prawn/format/instructions/tag_close.rb, line 10
10: def self.close(state, tag, draw_state)
11: closer = new(state, tag)
12: closer.draw(state.document, draw_state)
13: end
# File lib/prawn/format/instructions/tag_close.rb, line 17
17: def initialize(state, tag)
18: super(state)
19: @tag = tag
20: end
# File lib/prawn/format/instructions/tag_close.rb, line 17
17: def initialize(state, tag)
18: super(state)
19: @tag = tag
20: end
# File lib/prawn/format/instructions/tag_close.rb, line 22
22: def [](property)
23: @tag[:style][property]
24: end
# File lib/prawn/format/instructions/tag_close.rb, line 22
22: def [](property)
23: @tag[:style][property]
24: end
# File lib/prawn/format/instructions/tag_close.rb, line 26
26: def draw(document, draw_state, options={})
27: (@tag[:effects] || []).each do |effect|
28: effect.finish(document, draw_state)
29: draw_state[:pending_effects].delete(effect)
30: end
31: end
# File lib/prawn/format/instructions/tag_close.rb, line 26
26: def draw(document, draw_state, options={})
27: (@tag[:effects] || []).each do |effect|
28: effect.finish(document, draw_state)
29: draw_state[:pending_effects].delete(effect)
30: end
31: end
# File lib/prawn/format/instructions/tag_close.rb, line 45
45: def end_verbatim?
46: @tag[:style][:white_space] == :pre
47: end
# File lib/prawn/format/instructions/tag_close.rb, line 45
45: def end_verbatim?
46: @tag[:style][:white_space] == :pre
47: end
# File lib/prawn/format/instructions/tag_close.rb, line 41
41: def force_break?
42: @tag[:style][:display] == :break
43: end
# File lib/prawn/format/instructions/tag_close.rb, line 41
41: def force_break?
42: @tag[:style][:display] == :break
43: end