Sha256: 7d6fb1e58dc60633bd1b7031f2bf58ec0027bf32ec406208fc4ddbaee0bf6b0e
Contents?: true
Size: 589 Bytes
Versions: 26
Compression:
Stored size: 589 Bytes
Contents
#!/usr/bin/env ruby require "dbus" session_bus = DBus::SessionBus.instance ruby_srv = session_bus.service("org.ruby.service") # Get the object from this service player = ruby_srv.object("/org/ruby/MyInstance") # Introspect it puts player.introspect player.default_iface = "org.ruby.SampleInterface" player.test_variant(["s", "coucou"]) player.on_signal("SomethingJustHappened") do |u, v| puts "SomethingJustHappened: #{u} #{v}" end player.hello("8=======D", "(_._)") p player["org.ruby.AnotherInterface"].Reverse("Hello world!") main = DBus::Main.new main << session_bus main.run
Version data entries
26 entries across 26 versions & 5 rubygems