Class: StickyNotifications

Inherits:
Thor
  • Object
show all
Defined in:
lib/stickynotifications.rb

Overview

All logic for StickyNotifications

Author:

  • “Brandon Pittman”

Instance Method Summary collapse

Instance Method Details

#new(sticky_text) ⇒ Object

Creates a new Sticky Notification

Parameters:

  • the text of the Sticky Notification



12
13
14
# File 'lib/stickynotifications.rb', line 12

def new(sticky_text)
  %x{open "sticky-notifications://note?message=#{escape_string(sticky_text)}"}
end