Method: Appom::Section#parent_page

Defined in:
lib/appom/section.rb

#parent_pageObject



18
19
20
21
22
23
24
# File 'lib/appom/section.rb', line 18

def parent_page
  candidate_page = parent
  until candidate_page.is_a?(Appom::Page)
    candidate_page = candidate_page.parent
  end
  candidate_page
end