Class: SWT::TreeCommand
- Inherits:
-
Object
- Object
- SWT::TreeCommand
- Defined in:
- lib/swt.rb
Direct Known Subclasses
ContainerTreeCommand, ImageCommand, LabelCommand, ObjectCommand, SimpleCommand
Instance Method Summary collapse
- #accept(child) ⇒ Object
-
#initialize(parent) ⇒ TreeCommand
constructor
A new instance of TreeCommand.
- #stacktrace ⇒ Object
Constructor Details
#initialize(parent) ⇒ TreeCommand
Returns a new instance of TreeCommand.
30 31 32 |
# File 'lib/swt.rb', line 30 def initialize(parent) @parent=parent end |
Instance Method Details
#accept(child) ⇒ Object
33 34 35 |
# File 'lib/swt.rb', line 33 def accept(child) child end |
#stacktrace ⇒ Object
36 37 38 |
# File 'lib/swt.rb', line 36 def stacktrace "in #{self.class}\n#{@parent.stacktrace if @parent}" end |