Class: Rvim::Window
- Inherits:
-
Object
- Object
- Rvim::Window
- Defined in:
- lib/rvim/window.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#col ⇒ Object
Returns the value of attribute col.
-
#extra_cols ⇒ Object
Returns the value of attribute extra_cols.
-
#extra_rows ⇒ Object
Returns the value of attribute extra_rows.
-
#height ⇒ Object
Returns the value of attribute height.
-
#row ⇒ Object
Returns the value of attribute row.
-
#scroll_top ⇒ Object
Returns the value of attribute scroll_top.
-
#vars ⇒ Object
Returns the value of attribute vars.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(buffer) ⇒ Window
constructor
A new instance of Window.
- #location_list ⇒ Object
Constructor Details
#initialize(buffer) ⇒ Window
Returns a new instance of Window.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rvim/window.rb', line 9 def initialize(buffer) @buffer = buffer @scroll_top = 0 @row = 0 @col = 0 @height = 24 @width = 80 @extra_rows = 0 @extra_cols = 0 @location_list = nil @vars = {} end |
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer.
5 6 7 |
# File 'lib/rvim/window.rb', line 5 def buffer @buffer end |
#col ⇒ Object
Returns the value of attribute col.
5 6 7 |
# File 'lib/rvim/window.rb', line 5 def col @col end |
#extra_cols ⇒ Object
Returns the value of attribute extra_cols.
6 7 8 |
# File 'lib/rvim/window.rb', line 6 def extra_cols @extra_cols end |
#extra_rows ⇒ Object
Returns the value of attribute extra_rows.
6 7 8 |
# File 'lib/rvim/window.rb', line 6 def extra_rows @extra_rows end |
#height ⇒ Object
Returns the value of attribute height.
5 6 7 |
# File 'lib/rvim/window.rb', line 5 def height @height end |
#row ⇒ Object
Returns the value of attribute row.
5 6 7 |
# File 'lib/rvim/window.rb', line 5 def row @row end |
#scroll_top ⇒ Object
Returns the value of attribute scroll_top.
5 6 7 |
# File 'lib/rvim/window.rb', line 5 def scroll_top @scroll_top end |
#vars ⇒ Object
Returns the value of attribute vars.
7 8 9 |
# File 'lib/rvim/window.rb', line 7 def vars @vars end |
#width ⇒ Object
Returns the value of attribute width.
5 6 7 |
# File 'lib/rvim/window.rb', line 5 def width @width end |