Sha256: 8b805aaeb35468f32c8d3de67512e4f8c0945e6f5f9d7a2cf4f8954cf9020877

Contents?: true

Size: 346 Bytes

Versions: 16

Compression:

Stored size: 346 Bytes

Contents

require 'switchboard/colors'

class DebugJack
  def self.connect(switchboard, settings)
    switchboard.on_presence do |presence|
      puts "<< #{presence.to_s}".green
    end

    switchboard.on_message do |message|
      puts "<< #{message.to_s}".blue
    end

    switchboard.on_iq do |iq|
      puts "<< #{iq.to_s}".yellow
    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
mojodna-switchboard-0.0.10 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.11 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.12 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.13 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.2 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.3 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.4 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.5 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.6 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.7 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.8 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.0.9 lib/switchboard/jacks/debug.rb
mojodna-switchboard-0.1.0 lib/switchboard/jacks/debug.rb
pkoch-switchboard-0.1.1b lib/switchboard/jacks/debug.rb
pkoch-switchboard-0.1.1a lib/switchboard/jacks/debug.rb
switchboard-0.1.0 lib/switchboard/jacks/debug.rb