Class: Ruvi::WinDesc
- Inherits:
-
Object
- Object
- Ruvi::WinDesc
- Defined in:
- lib/curses-ui.rb
Instance Attribute Summary collapse
-
#sx ⇒ Object
Returns the value of attribute sx.
-
#sy ⇒ Object
Returns the value of attribute sy.
-
#win ⇒ Object
Returns the value of attribute win.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y, sx, sy) ⇒ WinDesc
constructor
A new instance of WinDesc.
- #to_s ⇒ Object
Constructor Details
#initialize(x, y, sx, sy) ⇒ WinDesc
Returns a new instance of WinDesc.
7 8 9 10 |
# File 'lib/curses-ui.rb', line 7 def initialize x, y, sx, sy @x, @y, @sx, @sy = x, y, sx, sy @win = nil end |
Instance Attribute Details
#sx ⇒ Object
Returns the value of attribute sx.
6 7 8 |
# File 'lib/curses-ui.rb', line 6 def sx @sx end |
#sy ⇒ Object
Returns the value of attribute sy.
6 7 8 |
# File 'lib/curses-ui.rb', line 6 def sy @sy end |
#win ⇒ Object
Returns the value of attribute win.
6 7 8 |
# File 'lib/curses-ui.rb', line 6 def win @win end |
#x ⇒ Object
Returns the value of attribute x.
6 7 8 |
# File 'lib/curses-ui.rb', line 6 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
6 7 8 |
# File 'lib/curses-ui.rb', line 6 def y @y end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/curses-ui.rb', line 11 def to_s "#{@x},#{@y} x #{@sx}, #{@sy}" end |