Sha256: dd34598ab6850e802ee9fec15e83a50d20c7fee6d3f42ef3c612ce930befc240

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

# frozen_string_literal: true

module Magic # :nodoc:
	module CoreExt # :nodoc:
		module_function

		def require_all scope = __FILE__
			scope
					.delete_suffix('.rb')
					.then { Pathname _1 }
					.glob('*.rb')
					.each { require _1 }
		end
	end

	CoreExt.require_all
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
magic-support-0.1.0 lib/magic/core_ext.rb