Class: Tiling::FrameExtents

Inherits:
Object
  • Object
show all
Defined in:
lib/tiling/frame_extents.rb

Overview

Public: DĂ©coration de fenĂȘtre.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bottomObject (readonly)

Returns the value of attribute bottom.



7
8
9
# File 'lib/tiling/frame_extents.rb', line 7

def bottom
  @bottom
end

#leftObject (readonly)

Returns the value of attribute left.



7
8
9
# File 'lib/tiling/frame_extents.rb', line 7

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



7
8
9
# File 'lib/tiling/frame_extents.rb', line 7

def right
  @right
end

#topObject (readonly)

Returns the value of attribute top.



7
8
9
# File 'lib/tiling/frame_extents.rb', line 7

def top
  @top
end