Class: Ruvi::WinDesc

Inherits:
Object
  • Object
show all
Defined in:
lib/curses-ui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sxObject

Returns the value of attribute sx.



6
7
8
# File 'lib/curses-ui.rb', line 6

def sx
  @sx
end

#syObject

Returns the value of attribute sy.



6
7
8
# File 'lib/curses-ui.rb', line 6

def sy
  @sy
end

#winObject

Returns the value of attribute win.



6
7
8
# File 'lib/curses-ui.rb', line 6

def win
  @win
end

#xObject

Returns the value of attribute x.



6
7
8
# File 'lib/curses-ui.rb', line 6

def x
  @x
end

#yObject

Returns the value of attribute y.



6
7
8
# File 'lib/curses-ui.rb', line 6

def y
  @y
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/curses-ui.rb', line 11

def to_s
    "#{@x},#{@y} x #{@sx}, #{@sy}"
end