module DBus::Systemd::Mixin::MethodMissing
Attributes
object[R]
@return DBus::ProxyObject @api private
Public Instance Methods
method_missing(name, *args, &blk)
click to toggle source
use method_missing
to proxy methods to the dbus proxy object interface methods
Calls superclass method
# File lib/dbus/systemd/mixin.rb, line 33 def method_missing(name, *args, &blk) if @object.respond_to?(name) @object.send(name, *args, &blk) else super end end
respond_to_missing?(*args)
click to toggle source
fix respond_to to also check the dbus methods
Calls superclass method
# File lib/dbus/systemd/mixin.rb, line 44 def respond_to_missing?(*args) @object.respond_to?(*args) || super end