lib/kitchen/page_element.rb
# Returns  replaces generic call to page.count_in(:chapter)
#
# @raise [StandardError] if called on an introduction page
# @return [Integer]
#
Returns  replaces generic call to page.count_in(:chapter)
Returns replaces generic call to page . count_in ( : chapter )
def count_in_chapter_without_intro_page
      raise 'Introduction pages cannot be counted with this method' if is_introduction?
      count_in(:chapter) - (ancestor(:chapter).has_introduction? ? 1 : 0)
    end
def count_in_chapter_without_intro_page raise 'Introduction pages cannot be counted with this method' if is_introduction? count_in ( :chapter ) - ( ancestor ( :chapter ) . has_introduction? ? 1 : 0 ) end
Returns  replaces generic call to page.count_in(:chapter)
Returns replaces generic call to page . count_in ( : chapter )
None
Integer
[StandardError] if called on an introduction page
[ StandardError ] if called on an introduction page