Method: Boxen::Check.register

Defined in:
lib/boxen/check.rb

.register(dir) ⇒ Object

Search ‘dir` and load all Ruby files under it.



21
22
23
# File 'lib/boxen/check.rb', line 21

def self.register(dir)
  Dir["#{dir}/*.rb"].sort.each { |f| load f }
end