Class: Prawn::Graph::Calculations::LayoutCalculator::Dimensions

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/prawn/graph/calculations/layout_calculator.rb

Instance Method Summary collapse

Instance Method Details

#pointObject


14
15
16
# File 'lib/prawn/graph/calculations/layout_calculator.rb', line 14

def point
  [x, y]
end

#renderable?Boolean

Returns:

  • (Boolean)

10
11
12
# File 'lib/prawn/graph/calculations/layout_calculator.rb', line 10

def renderable?
  width > 0 && height > 0
end