Method: Proton::Page#siblings
- Defined in:
- lib/proton/page.rb
#siblings ⇒ Object
Method: siblings (Proton::Page) Returns a Set of pages that share the same parent as the current page.
409 410 411 412 413 414 |
# File 'lib/proton/page.rb', line 409 def siblings pages = (p = parent and p.children) return Set.new unless pages return Set.new unless pages.include?(self) Set.new(pages) end |