Class: RShell
Instance Attribute Summary collapse
-
#display ⇒ Object
readonly
Returns the value of attribute display.
Attributes inherited from RWidget
Instance Method Summary collapse
-
#initialize(display = Display.new) ⇒ RShell
constructor
A new instance of RShell.
- #open ⇒ Object
Methods inherited from RWidget
#add_listener, #async_exec, #can_add_listener?, #has_attribute?, #has_style?, #process_block, #set_attribute, #sync_exec, widget_exists?, #widget_listener_exists?
Methods included from Parent
Constructor Details
#initialize(display = Display.new) ⇒ RShell
9 10 11 12 13 |
# File 'lib/command_handlers/models/r_shell.rb', line 9 def initialize(display = Display.new) @display = display = Shell.new(@display) .setLayout(FillLayout.new) end |
Instance Attribute Details
#display ⇒ Object (readonly)
Returns the value of attribute display.
7 8 9 |
# File 'lib/command_handlers/models/r_shell.rb', line 7 def display @display end |
Instance Method Details
#open ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/command_handlers/models/r_shell.rb', line 15 def open .pack .open until .isDisposed @display.sleep unless @display.readAndDispatch end @display.dispose end |