Sha256: a6425ffad19101f47d0299a6e332ae1cd35a2b8e6ea6da7aa0cd544450749a48

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

module Notifaction
  module Type
    class Linux < Type::Base
      #
      # @since 0.1.0
      def bubble(message, title)
        @response = `notify-send "#{title}" "#{message}"`
        $?.exitstatus == 0

        fire_hooks({ method: __method__, message: message, title: title })
      end

      #
      # @since 0.1.0
      def modal(message, title)
        nil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
notifaction-0.4.4 lib/notifaction/types/linux.rb
notifaction-0.4.3 lib/notifaction/types/linux.rb
notifaction-0.4.2 lib/notifaction/types/linux.rb
notifaction-0.4.1 lib/notifaction/types/linux.rb