app/models/docthis/page.rb
# Obtains the children subpages of this page.
#
# Returns:
#   Array containing the children subpages of this page. It can be an empty
#   array, if this page does not have any children
Obtains the children subpages of this page.
Returns:
Array containing the children subpages of this page. It can be an empty
array, if this page does not have any children
Obtains the children subpages of this page . Returns : Array containing the children subpages of this page . It can be an empty array if this page does not have any children
def children
    @children = nil if Rails.env.development?
    @children ||= !has_children? ? [] : Dir.
      glob(File.join(File.dirname(@file), "*")).
      reject {|f| File.basename(f) == "index.md"}.
      sort.
      map {|f| Docthis::Page.load_page_from_file!(f)}
  end
def children @children = nil if Rails . env . development? @children ||= ! has_children? ? [ ] : Dir . glob ( File . join ( File . dirname ( @file ) , "*" ) ) . reject { | f | File . basename ( f ) == "index.md" } . sort . map { | f | Docthis :: Page . load_page_from_file! ( f ) } end
Obtains the children subpages of this page.
Obtains the children subpages of this page .