Class: DevelopWithPassion::Expander::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/developwithpassion_expander/log.rb

Class Method Summary collapse

Class Method Details

.disableObject



11
12
13
# File 'lib/developwithpassion_expander/log.rb', line 11

def disable
  @enabled = false
end

.enableObject



8
9
10
# File 'lib/developwithpassion_expander/log.rb', line 8

def enable
  @enabled = true
end

.message(item) ⇒ Object



5
6
7
# File 'lib/developwithpassion_expander/log.rb', line 5

def message(item)
  puts item if @enabled
end