Class Prawn::Format::Instructions::TagClose
In: lib/prawn/format/instructions/tag_close.rb
lib/prawn/format/instructions/tag_close.rb
Parent: Base

Methods

[]   []   break?   break?   close   close   draw   draw   end_verbatim?   end_verbatim?   force_break?   force_break?   new   new   style   style  

Attributes

tag  [R] 
tag  [R] 

Public Class methods

[Source]

    # 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

[Source]

    # 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

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 17
17:         def initialize(state, tag)
18:           super(state)
19:           @tag = tag
20:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 17
17:         def initialize(state, tag)
18:           super(state)
19:           @tag = tag
20:         end

Public Instance methods

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 22
22:         def [](property)
23:           @tag[:style][property]
24:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 22
22:         def [](property)
23:           @tag[:style][property]
24:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 33
33:         def break?
34:           force_break?
35:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 33
33:         def break?
34:           force_break?
35:         end

[Source]

    # 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

[Source]

    # 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

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 45
45:         def end_verbatim?
46:           @tag[:style][:white_space] == :pre
47:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 45
45:         def end_verbatim?
46:           @tag[:style][:white_space] == :pre
47:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 41
41:         def force_break?
42:           @tag[:style][:display] == :break
43:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 41
41:         def force_break?
42:           @tag[:style][:display] == :break
43:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 37
37:         def style
38:           @tag[:style]
39:         end

[Source]

    # File lib/prawn/format/instructions/tag_close.rb, line 37
37:         def style
38:           @tag[:style]
39:         end

[Validate]