Make GlobUtils extend self for easier access

This commit is contained in:
Sijawusz Pur Rahnama 2024-04-17 23:42:05 +02:00
parent 5403aee899
commit 1bd59c1bf0
2 changed files with 3 additions and 5 deletions

View file

@ -1,11 +1,7 @@
require "../spec_helper"
module Ameba
struct GlobUtilsClass
include GlobUtils
end
subject = GlobUtilsClass.new
subject = GlobUtils
current_file_basename = File.basename(__FILE__)
current_file_path = "spec/ameba/#{current_file_basename}"

View file

@ -1,6 +1,8 @@
module Ameba
# Helper module that is utilizes helpers for working with globs.
module GlobUtils
extend self
# Returns all files that match specified globs.
# Globs can have wildcards or be rejected:
#