1 |
require "guard/internals/environment"
|
1✔ |
2 |
|
|
3 |
module Guard |
1✔ |
4 |
class Config |
1✔ |
5 |
def strict? |
1✔ |
6 |
_env.strict? |
10✔ |
7 |
end
|
|
8 |
|
|
9 |
def silence_deprecations? |
1✔ |
10 |
end
|
|
11 |
|
|
12 |
private |
1✔ |
13 |
|
|
14 |
def _env |
1✔ |
15 |
@env ||= _create_env
|
10✔ |
16 |
end
|
|
17 |
|
|
18 |
def _create_env |
1✔ |
19 |
Internals::Environment.new("GUARD").tap do |env| |
10✔ |
20 |
env.create_method(:strict?)
|
10✔ |
21 |
end
|
|
22 |
end
|
|
23 |
end
|
|
24 |
end
|