Class: WithClues::Notifier
- Inherits:
-
Object
- Object
- WithClues::Notifier
- Defined in:
- lib/with_clues/notifier.rb
Instance Method Summary collapse
- #blank_line ⇒ Object
-
#initialize(io) ⇒ Notifier
constructor
A new instance of Notifier.
- #notify(message) ⇒ Object
- #notify_raw(message) ⇒ Object
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_line ⇒ Object
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() @io.puts "[ with_clues ] #{}" end |
#notify_raw(message) ⇒ Object
15 16 17 |
# File 'lib/with_clues/notifier.rb', line 15 def notify_raw() @io.puts end |