Class: Ruvi::Widget
- Inherits:
-
Object
- Object
- Ruvi::Widget
- Defined in:
- lib/widgets.rb
Instance Attribute Summary collapse
-
#buffer ⇒ Object
Returns the value of attribute buffer.
-
#cursor ⇒ Object
Returns the value of attribute cursor.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
- #height ⇒ Object
-
#initialize(app, buffer) ⇒ Widget
constructor
A new instance of Widget.
- #watch_buffer ⇒ Object
- #width ⇒ Object
Constructor Details
Instance Attribute Details
#buffer ⇒ Object
Returns the value of attribute buffer.
103 104 105 |
# File 'lib/widgets.rb', line 103 def buffer @buffer end |
#cursor ⇒ Object
Returns the value of attribute cursor.
103 104 105 |
# File 'lib/widgets.rb', line 103 def cursor @cursor end |
#parent ⇒ Object
Returns the value of attribute parent.
103 104 105 |
# File 'lib/widgets.rb', line 103 def parent @parent end |
Instance Method Details
#height ⇒ Object
112 113 114 |
# File 'lib/widgets.rb', line 112 def height raise "height must be implemented in sub classes!" end |
#watch_buffer ⇒ Object
115 116 117 |
# File 'lib/widgets.rb', line 115 def watch_buffer nil end |
#width ⇒ Object
109 110 111 |
# File 'lib/widgets.rb', line 109 def width raise "width must be implemented in sub classes!" end |