Module: TreeViewable

Defined in:
lib/qtext/object_table_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



16
17
18
# File 'lib/qtext/object_table_model.rb', line 16

def parent
  @parent
end

Instance Method Details

#childrenObject



23
24
25
# File 'lib/qtext/object_table_model.rb', line 23

def children
  @children ||= ZeroSize.new
end

#children=(ary) ⇒ Object



18
19
20
21
# File 'lib/qtext/object_table_model.rb', line 18

def children=( ary )
  ary.each{|x| x.parent = self}
  @children = ary
end