Method: Interview::Control#ancestors
- Defined in:
- lib/interview/control.rb
#ancestors ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/interview/control.rb', line 29 def ancestors if @parent.nil? return [] else return [@parent] + @parent.ancestors end end |