Module containing all the D-Bus modules and classes.
SystemSocketName | = | "unix:path=/var/run/dbus/system_bus_socket" | Default socket name for the system bus. | |
BIG_END | = | ?B | Byte signifying big endianness. | |
LIL_END | = | ?l | Byte signifying little endianness. | |
HOST_END | = | if [0x01020304].pack("L").unpack("V")[0] == 0x01020304 | Byte signifying the host‘s endianness. | |
MethodSignalRE | = | /^[A-Za-z][A-Za-z0-9_]*$/ | Regular expressions that should match all method names. | |
InterfaceElementRE | = | /^[A-Za-z][A-Za-z0-9_]*$/ | Regular expressions that should match all interface names. |
Shortcut for the SessionBus instance
# File lib/dbus/bus.rb, line 794 def DBus.session_bus SessionBus.instance end
raise DBus.error, "message" raise DBus.error("org.example.Error.SeatOccupied"), "Seat #{n} is occupied"
# File lib/dbus/error.rb, line 39 def error(name = "org.freedesktop.DBus.Error.Failed") # message will be set by Kernel.raise DBus::Error.new(nil, name) end
Parse a String to a DBus::Type::Type
# File lib/dbus/type.rb, line 211 def type(string_type) Type::Parser.new(string_type).parse[0] end