Module: Bash_Visual::FixedObject
- Included in:
- Scroll
- Defined in:
- lib/bash-visual/fixed_object.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
5 6 7 |
# File 'lib/bash-visual/fixed_object.rb', line 5 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
5 6 7 |
# File 'lib/bash-visual/fixed_object.rb', line 5 def width @width end |
#x ⇒ Object
Returns the value of attribute x.
5 6 7 |
# File 'lib/bash-visual/fixed_object.rb', line 5 def x @x end |
#y ⇒ Object
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
#position ⇒ Object
7 8 9 |
# File 'lib/bash-visual/fixed_object.rb', line 7 def position [@x, @y] end |
#size ⇒ Object
11 12 13 |
# File 'lib/bash-visual/fixed_object.rb', line 11 def size [@width, @height] end |