Sha256: 5cbb50eb97565a10383a16f7958b2859e27fdf20a5568b29be0e92320ef633e1

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.

module Ramaze

  class Knotify
    include Informing

    trait :present => 16

    # Please see for more information:
    # http://lukeplant.me.uk/articles.php?id=3
    def inform(tag, *messages)
      present = class_trait[:present]
      tag = tag.to_s.capitalize
      messages.flatten.each do |message|
        system(%{dcop knotify default notify Ramaze "#{tag}" "#{message}" '' '' #{present} 0})
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.1.2 lib/ramaze/inform/knotify.rb