Class: Prawn::DocumentBuilder::PathConstruct

Inherits:
Command
  • Object
show all
Defined in:
lib/prawn/document_builder/constructs/path_construct.rb

Instance Attribute Summary

Attributes inherited from Command

#box, #name, #params

Instance Method Summary collapse

Methods inherited from Command

#execute, #initialize, #restore_params, #save_params, #setup, #teardown

Constructor Details

This class inherits a constructor from Prawn::DocumentBuilder::Command

Instance Method Details

#line(document, layout) ⇒ Object



4
5
6
# File 'lib/prawn/document_builder/constructs/path_construct.rb', line 4

def line(document, layout)
  document.line(params[:point1], params[:point2])
end