Class Prawn::Format::Instructions::Base
In: lib/prawn/format/instructions/base.rb
lib/prawn/format/instructions/base.rb
Parent: Object

Methods

Attributes

ascent  [R] 
ascent  [R] 
descent  [R] 
descent  [R] 
state  [R] 
state  [R] 

Public Class methods

[Source]

    # File lib/prawn/format/instructions/base.rb, line 10
10:         def initialize(state)
11:           @state = state
12:           state.document.font_size(state.font_size) do
13:             @height = state.font.height
14:             @ascent = state.font.ascender
15:             @descent = state.font.descender
16:           end
17:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 10
10:         def initialize(state)
11:           @state = state
12:           state.document.font_size(state.font_size) do
13:             @height = state.font.height
14:             @ascent = state.font.ascender
15:             @descent = state.font.descender
16:           end
17:         end

Public Instance methods

[Source]

    # File lib/prawn/format/instructions/base.rb, line 55
55:         def accumulate(list)
56:           list.push(self)
57:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 55
55:         def accumulate(list)
56:           list.push(self)
57:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 31
31:         def break?
32:           false
33:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 31
31:         def break?
32:           false
33:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 39
39:         def discardable?
40:           false
41:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 39
39:         def discardable?
40:           false
41:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 47
47:         def end_verbatim?
48:           false
49:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 47
47:         def end_verbatim?
48:           false
49:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 35
35:         def force_break?
36:           false
37:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 35
35:         def force_break?
36:           false
37:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 27
27:         def height(*args)
28:           @height
29:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 27
27:         def height(*args)
28:           @height
29:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 19
19:         def spaces
20:           0
21:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 19
19:         def spaces
20:           0
21:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 43
43:         def start_verbatim?
44:           false
45:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 43
43:         def start_verbatim?
44:           false
45:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 51
51:         def style
52:           {}
53:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 51
51:         def style
52:           {}
53:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 23
23:         def width(*args)
24:           0
25:         end

[Source]

    # File lib/prawn/format/instructions/base.rb, line 23
23:         def width(*args)
24:           0
25:         end

[Validate]