Method: Tk::TreeCtrl::Item#firstchild

Defined in:
ext/lib/tkextlib/treectrl/tktreectrl.rb

#firstchild(child = nil) ⇒ Object Also known as: first_child



2046
2047
2048
2049
2050
2051
2052
2053
# File 'ext/lib/tkextlib/treectrl/tktreectrl.rb', line 2046

def firstchild(child=nil)
  if child
    @tree.item_firstchild(@id, child)
    self
  else
    @tree.item_firstchild(@id)
  end
end