Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 301a2cc2fa
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.42 kb
require_relative 'code_history.rb'
require_relative 'source_file.rb'
module RepoDepot
class Repository < CodeHistory
def source_files; @source_files ||= collection_of(:file_name, SourceFile); end
def classes; @classes ||= collection_of(:class_name, Class); end
def methods
classes.map { |c| c.methods }.flatten
end
def complexity
complexity_of(classes)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.