doc/Reference.md in ruby-dbus-0.22.1 vs doc/Reference.md in ruby-dbus-0.23.0.beta1

- old
+ new

@@ -22,11 +22,11 @@ #### Calling Methods 1. {DBus.session_bus Connect to the session bus}; 2. {DBus::Connection#[] get the screensaver service} -3. {DBus::Service#[] and its screensaver object}. +3. {DBus::ProxyService#[] and its screensaver object}. 4. Call one of its methods in a loop, solving [xkcd#196](http://xkcd.com/196). &nbsp; mybus = DBus.session_bus @@ -56,11 +56,11 @@ In former versions of this library, a method proxy always returned an array of values. This was to accomodate the rare cases of a DBus method specifying more than one *out* parameter. For compatibility, the behavior is preserved if you construct a {DBus::ProxyObject} with {DBus::ApiOptions::A0}, -which is what {DBus::Service#object} does. +which is what {DBus::ProxyService#object} does. For nearly all methods you used `Method[0]` or `Method.first` ([I#30](https://github.com/mvidner/ruby-dbus/issues/30)). @@ -338,11 +338,11 @@ end obj = Note.new("/net/vidner/Example/Properties") bus = DBus::SessionBus.instance - service = bus.request_service("net.vidner.Example") - service.export(obj) + bus.object_server.export(obj) + bus.request_name("net.vidner.Example") main = DBus::Main.new main << bus main.run