Sha256: 27e28ce994718ada8c027c906009d6395ecd85baad4d45bb2a72cd5e1be07235
Contents?: true
Size: 572 Bytes
Versions: 24
Compression:
Stored size: 572 Bytes
Contents
module Rubrowser module Parser class Directory attr_reader :directory def initialize(directory) @directory = directory files = Dir.glob(::File.join(directory, '**', '*.rb')) @parsers = files.map { |f| File.new(f) } end def parse parsers.each(&:parse) end def definitions parsers.map(&:definitions).map(&:to_a).reduce([], :+) end def relations parsers.map(&:relations).map(&:to_a).reduce([], :+) end private attr_reader :parsers end end end
Version data entries
24 entries across 24 versions & 1 rubygems