Module: RequireHooks::KernelPatch::Features

Defined in:
lib/require-hooks/mode/kernel_patch.rb

Defined Under Namespace

Classes: Locker

Constant Summary collapse

LOCK =
Locker.new

Class Method Summary collapse

Class Method Details

.feature_path(path, implitic_ext: true) ⇒ Object



136
137
138
139
140
141
# File 'lib/require-hooks/mode/kernel_patch.rb', line 136

def feature_path(path, implitic_ext: true)
  path = resolve_feature_path(path, implitic_ext: implitic_ext)
  return if path.nil?
  return if File.extname(path) != ".rb" && implitic_ext
  path
end