Class: Ykutils::DebugUtils::DebugMes
- Inherits:
-
Object
- Object
- Ykutils::DebugUtils::DebugMes
- Defined in:
- lib/ykutils/debugutils.rb
Class Attribute Summary collapse
-
.debug ⇒ Object
Returns the value of attribute debug.
-
.warn ⇒ Object
Returns the value of attribute warn.
Class Method Summary collapse
Class Attribute Details
.debug ⇒ Object
Returns the value of attribute debug.
14 15 16 |
# File 'lib/ykutils/debugutils.rb', line 14 def debug @debug end |
.warn ⇒ Object
Returns the value of attribute warn.
18 19 20 |
# File 'lib/ykutils/debugutils.rb', line 18 def warn @warn end |
Class Method Details
.clear ⇒ Object
29 30 31 |
# File 'lib/ykutils/debugutils.rb', line 29 def self.clear @buf.clear end |
.get ⇒ Object
25 26 27 |
# File 'lib/ykutils/debugutils.rb', line 25 def self.get @buf end |
.init(debug: false) ⇒ Object
8 9 10 11 |
# File 'lib/ykutils/debugutils.rb', line 8 def self.init(debug: false) @debug = debug @buf = [] end |
.puts_x(mes) ⇒ Object
21 22 23 |
# File 'lib/ykutils/debugutils.rb', line 21 def self.puts_x(mes) @buf << mes end |