Class: Debug
- Inherits:
-
Object
- Object
- Debug
- Defined in:
- lib/learn-japanese/debug.rb
Class Method Summary collapse
Class Method Details
.break ⇒ Object
19 20 21 22 |
# File 'lib/learn-japanese/debug.rb', line 19 def self.break require 'debug' binding.break end |
.puts_group(group) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/learn-japanese/debug.rb', line 6 def self.puts_group(group) keys = group.keys keys = group.keys.map { |i| " #{i}" } if group.keys.first == :a STDOUT.puts group.values.join(' ').light_blue STDOUT.puts keys.join(' ').blue STDOUT.puts "\n" end |
.puts_line ⇒ Object
15 16 17 |
# File 'lib/learn-japanese/debug.rb', line 15 def self.puts_line STDOUT.puts ('=' * 20).white end |