Module: TreeViewable
- Defined in:
- lib/qtext/object_table_model.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
Instance Attribute Details
#parent ⇒ Object
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
#children ⇒ Object
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 |