Class: SWT::TreeCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/swt.rb

Instance Method Summary collapse

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

#stacktraceObject



36
37
38
# File 'lib/swt.rb', line 36

def stacktrace
  "in #{self.class}\n#{@parent.stacktrace if @parent}"
end