Class: Termplot::Widgets::BaseWidget::BorderedWindow
- Inherits:
-
Struct
- Object
- Struct
- Termplot::Widgets::BaseWidget::BorderedWindow
show all
- Defined in:
- lib/termplot/widgets/base_widget.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
69
70
71
72
73
74
75
|
# File 'lib/termplot/widgets/base_widget.rb', line 69
def method_missing(method, *args, &block)
if window.respond_to?(method)
window.send(method, *args, &block)
else
super
end
end
|
Instance Method Details
#inner_height ⇒ Object
65
66
67
|
# File 'lib/termplot/widgets/base_widget.rb', line 65
def inner_height
window.rows - border_size.top - border_size.bottom
end
|
#inner_width ⇒ Object
61
62
63
|
# File 'lib/termplot/widgets/base_widget.rb', line 61
def inner_width
window.cols - border_size.left - border_size.right
end
|