Class: MultiTkIp::Command_Queue
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(interp) ⇒ Command_Queue
constructor
A new instance of Command_Queue.
- #push(value) ⇒ Object (also: #<<, #enq)
Constructor Details
#initialize(interp) ⇒ Command_Queue
Returns a new instance of Command_Queue.
64 65 66 67 |
# File 'lib/multi-tk.rb', line 64 def initialize(interp) @interp = interp super() end |
Instance Method Details
#close ⇒ Object
78 79 80 |
# File 'lib/multi-tk.rb', line 78 def close @interp = nil end |
#push(value) ⇒ Object Also known as: <<, enq
69 70 71 72 73 74 |
# File 'lib/multi-tk.rb', line 69 def push(value) if !@interp || @interp.deleted? fail RuntimeError, "Tk interpreter is already deleted" end super(value) end |