module Hubcap
Constants
- VERSION
Public Class Methods
hub(filter_string = '', &blk)
click to toggle source
# File lib/hubcap.rb, line 6 def self.hub(filter_string = '', &blk) Hubcap::Hub.new(filter_string).tap { |scope| scope.instance_eval(&blk) } end
load(filter_string, *paths)
click to toggle source
# File lib/hubcap.rb, line 11 def self.load(filter_string, *paths) Hubcap::Hub.new(filter_string).tap { |scope| while paths.any? path = paths.shift if File.directory?(path) paths += Dir.glob(File.join(path, '*.rb')) else scope.absorb(path) end end } end