Class: WhirledPeas::Graphics::TextDimensions

Inherits:
Object
  • Object
show all
Defined in:
lib/whirled_peas/graphics/graph_dimensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings, content) ⇒ TextDimensions

Returns a new instance of TextDimensions.



6
7
8
9
# File 'lib/whirled_peas/graphics/graph_dimensions.rb', line 6

def initialize(settings, content)
  @outer_width = settings.width
  @outer_height = settings.height
end

Instance Attribute Details

#outer_heightObject (readonly)

Returns the value of attribute outer_height.



4
5
6
# File 'lib/whirled_peas/graphics/graph_dimensions.rb', line 4

def outer_height
  @outer_height
end

#outer_widthObject (readonly)

Returns the value of attribute outer_width.



4
5
6
# File 'lib/whirled_peas/graphics/graph_dimensions.rb', line 4

def outer_width
  @outer_width
end