Sha256: 5679b94c763fcda413c8976bc9515502c826c39ce2a0e5d5c0ee784e95a633cc
Contents?: true
Size: 697 Bytes
Versions: 7
Compression:
Stored size: 697 Bytes
Contents
require File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), 'source') module Reek module Source class SourceRepository def self.parse source case source when Array new 'dir', Source::SourceLocator.new(source).all_sources when Source::SourceCode new source.desc, [source] else src = source.to_reek_source new src.desc, [src] end end include Enumerable attr_reader :description def initialize description, sources @description = description @sources = sources end def each &block @sources.each &block end end end end
Version data entries
7 entries across 7 versions & 1 rubygems