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.
17 18 19 |
# File 'lib/qtext/object_table_model.rb', line 17 def parent @parent end |
Instance Method Details
#children ⇒ Object
24 25 26 |
# File 'lib/qtext/object_table_model.rb', line 24 def children @children ||= ZeroSize.new end |
#children=(ary) ⇒ Object
19 20 21 22 |
# File 'lib/qtext/object_table_model.rb', line 19 def children=( ary ) ary.each{|x| x.parent = self} @children = ary end |