Class: WithClues::Notifier

Inherits:
Object
  • Object
show all
Defined in:
lib/with_clues/notifier.rb

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ Notifier

Returns a new instance of Notifier.



3
4
5
# File 'lib/with_clues/notifier.rb', line 3

def initialize(io)
  @io = io
end

Instance Method Details

#blank_lineObject



7
8
9
# File 'lib/with_clues/notifier.rb', line 7

def blank_line
  self.notify_raw("")
end

#notify(message) ⇒ Object



11
12
13
# File 'lib/with_clues/notifier.rb', line 11

def notify(message)
  @io.puts "[ with_clues ] #{message}"
end

#notify_raw(message) ⇒ Object



15
16
17
# File 'lib/with_clues/notifier.rb', line 15

def notify_raw(message)
  @io.puts message
end