Prawn::Format::Instructions::TagOpen

Attributes

tag[R]

Public Class Methods

new(state, tag) click to toggle source
# File lib/prawn/format/instructions/tag_open.rb, line 13
def initialize(state, tag)
  super(state)
  @tag = tag
end

Public Instance Methods

draw(document, draw_state, options={}) click to toggle source
# File lib/prawn/format/instructions/tag_open.rb, line 18
def draw(document, draw_state, options={})
  draw_width(document, draw_state)
  draw_destination(document, draw_state)
  draw_link(document, draw_state)
  draw_underline(document, draw_state)
end
start_verbatim?() click to toggle source
# File lib/prawn/format/instructions/tag_open.rb, line 25
def start_verbatim?
  @tag[:style][:white_space] == :pre
end
style() click to toggle source
# File lib/prawn/format/instructions/tag_open.rb, line 29
def style
  @tag[:style]
end
width() click to toggle source
# File lib/prawn/format/instructions/tag_open.rb, line 33
def width
  @state.width
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.