Class: Tiling::FrameExtents
- Inherits:
-
Object
- Object
- Tiling::FrameExtents
- Defined in:
- lib/tiling/frame_extents.rb
Overview
Public: DĂ©coration de fenĂȘtre.
Instance Attribute Summary collapse
-
#bottom ⇒ Object
readonly
Returns the value of attribute bottom.
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
-
#top ⇒ Object
readonly
Returns the value of attribute top.
Instance Method Summary collapse
-
#initialize(extents) ⇒ FrameExtents
constructor
A new instance of FrameExtents.
Constructor Details
#initialize(extents) ⇒ FrameExtents
Returns a new instance of FrameExtents.
9 10 11 12 13 14 |
# File 'lib/tiling/frame_extents.rb', line 9 def initialize extents @left = extents[0] @right = extents[1] @top = extents[2] @bottom = extents[3] end |
Instance Attribute Details
#bottom ⇒ Object (readonly)
Returns the value of attribute bottom.
7 8 9 |
# File 'lib/tiling/frame_extents.rb', line 7 def bottom @bottom end |
#left ⇒ Object (readonly)
Returns the value of attribute left.
7 8 9 |
# File 'lib/tiling/frame_extents.rb', line 7 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
7 8 9 |
# File 'lib/tiling/frame_extents.rb', line 7 def right @right end |
#top ⇒ Object (readonly)
Returns the value of attribute top.
7 8 9 |
# File 'lib/tiling/frame_extents.rb', line 7 def top @top end |