Module: Bash_Visual::FixedObject

Included in:
Scroll
Defined in:
lib/bash-visual/fixed_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height.



5
6
7
# File 'lib/bash-visual/fixed_object.rb', line 5

def height
  @height
end

#widthObject

Returns the value of attribute width.



5
6
7
# File 'lib/bash-visual/fixed_object.rb', line 5

def width
  @width
end

#xObject

Returns the value of attribute x.



5
6
7
# File 'lib/bash-visual/fixed_object.rb', line 5

def x
  @x
end

#yObject

Returns the value of attribute y.



5
6
7
# File 'lib/bash-visual/fixed_object.rb', line 5

def y
  @y
end

Instance Method Details

#positionObject



7
8
9
# File 'lib/bash-visual/fixed_object.rb', line 7

def position
  [@x, @y]
end

#sizeObject



11
12
13
# File 'lib/bash-visual/fixed_object.rb', line 11

def size
  [@width, @height]
end