Class: Core::CoreHelper
- Inherits:
-
Object
- Object
- Core::CoreHelper
- Defined in:
- lib/core_helper.rb
Class Method Summary collapse
Class Method Details
.core_path ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/core_helper.rb', line 5 def self.core_path origin_exist = Dir.exist?("#{__dir__}/core") blur_exist = Dir.exist?("#{__dir__}/core_blur") core_path = nil if origin_exist core_path = "core" elsif blur_exist core_path = "core_blur" else puts "❌ 引用错误, 请检查" end core_path end |