module Hubba
Public Class Methods
stats( hash_or_path='./repos.yml' )
click to toggle source
# File lib/hubba/reports.rb, line 28 def self.stats( hash_or_path='./repos.yml' ) ## use read_stats or such - why? why not? h = if hash_or_path.is_a?( String ) ## assume it is a file path!!! path = hash_or_path YAML.load_file( path ) else hash_or_path # assume its a hash / reposet already!!! end Folio.new( h ) ## wrap in "easy-access" facade / wrapper end