Top Level Namespace

Defined Under Namespace

Modules: I18n, Kitchen, Nokogiri Classes: Array, Integer, Object, String

Instance Method Summary collapse

Instance Method Details

#file_glob(relative_folder_and_extension) ⇒ Object



13
14
15
# File 'lib/openstax_kitchen.rb', line 13

def file_glob(relative_folder_and_extension)
  Dir[File.expand_path("#{__dir__}/#{relative_folder_and_extension}")]
end

#require_all(relative_folder, file_matcher = '**/*.rb') ⇒ Object



17
18
19
# File 'lib/openstax_kitchen.rb', line 17

def require_all(relative_folder, file_matcher='**/*.rb')
  file_glob(relative_folder + "/#{file_matcher}").each { |f| require f }
end