class Guard::Commands::Notification

Public Class Methods

import() click to toggle source
# File lib/guard/commands/notification.rb, line 8
      def self.import
        Pry::Commands.create_command "notification" do
          group "Guard"
          description "Toggles the notifications."

          banner <<-BANNER
          Usage: notification

          Toggles the notifications on and off.
          BANNER

          def process
            Notifier.toggle
          end
        end
      end

Public Instance Methods

process() click to toggle source
# File lib/guard/commands/notification.rb, line 19
def process
  Notifier.toggle
end