Module: Gry
- Defined in:
- lib/gry.rb,
lib/gry/cli.rb,
lib/gry/law.rb,
lib/gry/option.rb,
lib/gry/version.rb,
lib/gry/congress.rb,
lib/gry/formatter.rb,
lib/gry/pilot_study.rb,
lib/gry/rubocop_runner.rb,
lib/gry/rubocop_adapter.rb
Defined Under Namespace
Modules: RubocopAdapter
Classes: CLI, Congress, Formatter, Law, Option, PilotStudy, RubocopRunner
Constant Summary
collapse
- VERSION =
"0.7.0"
Class Method Summary
collapse
Class Method Details
.debug? ⇒ Boolean
25
26
27
|
# File 'lib/gry.rb', line 25
def self.debug?
@debug
end
|
.debug_log(msg) ⇒ Object
34
35
36
37
38
39
40
41
42
|
# File 'lib/gry.rb', line 34
def self.debug_log(msg)
@mu_debug_print.lock
return unless debug?
message = msg.is_a?(String) ? msg : msg.inspect
$stderr.puts message
ensure
@mu_debug_print.unlock
end
|
.debug_mode! ⇒ Object
29
30
31
|
# File 'lib/gry.rb', line 29
def self.debug_mode!
@debug = true
end
|