Class: Imogen::AutoCrop::Box::BoxInfo
- Inherits:
-
Object
- Object
- Imogen::AutoCrop::Box::BoxInfo
- Defined in:
- lib/imogen/auto_crop/box.rb
Constant Summary collapse
- SQUARISH =
5.to_f / 6
Instance Attribute Summary collapse
-
#radius ⇒ Object
Returns the value of attribute radius.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y, r) ⇒ BoxInfo
constructor
A new instance of BoxInfo.
Constructor Details
#initialize(x, y, r) ⇒ BoxInfo
Returns a new instance of BoxInfo.
69 70 71 72 73 |
# File 'lib/imogen/auto_crop/box.rb', line 69 def initialize(x,y,r) @x = x @y = y @radius = r end |
Instance Attribute Details
#radius ⇒ Object
Returns the value of attribute radius.
67 68 69 |
# File 'lib/imogen/auto_crop/box.rb', line 67 def radius @radius end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
66 67 68 |
# File 'lib/imogen/auto_crop/box.rb', line 66 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
66 67 68 |
# File 'lib/imogen/auto_crop/box.rb', line 66 def y @y end |