Class: Ykutils::DebugUtils::DebugMes

Inherits:
Object
  • Object
show all
Defined in:
lib/ykutils/debugutils.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.debugObject

Returns the value of attribute debug.



14
15
16
# File 'lib/ykutils/debugutils.rb', line 14

def debug
  @debug
end

.warnObject

Returns the value of attribute warn.



18
19
20
# File 'lib/ykutils/debugutils.rb', line 18

def warn
  @warn
end

Class Method Details

.clearObject



29
30
31
# File 'lib/ykutils/debugutils.rb', line 29

def self.clear
  @buf.clear
end

.getObject



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