Class: WhirledPeas::Graphics::TextDimensions
- Inherits:
-
Object
- Object
- WhirledPeas::Graphics::TextDimensions
- Defined in:
- lib/whirled_peas/graphics/graph_dimensions.rb
Instance Attribute Summary collapse
-
#outer_height ⇒ Object
readonly
Returns the value of attribute outer_height.
-
#outer_width ⇒ Object
readonly
Returns the value of attribute outer_width.
Instance Method Summary collapse
-
#initialize(settings, content) ⇒ TextDimensions
constructor
A new instance of TextDimensions.
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_height ⇒ Object (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_width ⇒ Object (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 |