Parent

Prawn::Format::Instructions::Base

Attributes

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

Public Class Methods

new(state) click to toggle source
# File lib/prawn/format/instructions/base.rb, line 9
def initialize(state)
  @state = state
  state.document.font_size(state.font_size) do
    @height = state.font.height
    @ascent = state.font.ascender
    @descent = state.font.descender
  end
end

Public Instance Methods

accumulate(list) click to toggle source
# File lib/prawn/format/instructions/base.rb, line 54
def accumulate(list)
  list.push(self)
end
break?() click to toggle source
# File lib/prawn/format/instructions/base.rb, line 30
def break?
  false
end
discardable?() click to toggle source
# File lib/prawn/format/instructions/base.rb, line 38
def discardable?
  false
end
end_verbatim?() click to toggle source
# File lib/prawn/format/instructions/base.rb, line 46
def end_verbatim?
  false
end
force_break?() click to toggle source
# File lib/prawn/format/instructions/base.rb, line 34
def force_break?
  false
end
height(*args) click to toggle source
# File lib/prawn/format/instructions/base.rb, line 26
def height(*args)
  @height
end
spaces() click to toggle source
# File lib/prawn/format/instructions/base.rb, line 18
def spaces
  0
end
start_verbatim?() click to toggle source
# File lib/prawn/format/instructions/base.rb, line 42
def start_verbatim?
  false
end
style() click to toggle source
# File lib/prawn/format/instructions/base.rb, line 50
def style
  {}
end
width(*args) click to toggle source
# File lib/prawn/format/instructions/base.rb, line 22
def width(*args)
  0
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.