From 50e9a42503e5ec3f60e5390fbee4f42827ed3d34 Mon Sep 17 00:00:00 2001 From: Paul Baumgart Date: Thu, 2 Sep 2010 20:30:13 -0700 Subject: [PATCH] fix documentation for Wiki.size --- lib/gollum/wiki.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gollum/wiki.rb b/lib/gollum/wiki.rb index 4770bec3..d6037183 100644 --- a/lib/gollum/wiki.rb +++ b/lib/gollum/wiki.rb @@ -224,11 +224,11 @@ module Gollum tree_list(treeish || 'master') end - # Fill an array with a list of pages. + # Public: Returns the number of pages accessible from a commit # # ref - A String ref that is either a commit SHA or references one. # - # Returns a flat Array of Gollum::Page instances. + # Returns a Fixnum def size(ref = nil) tree_map_for(ref || 'master').inject(0) do |num, entry| num + (@page_class.valid_page_name?(entry.name) ? 1 : 0)