### Home Classes Methods

### In Files

- lib/dbus.rb
- lib/dbus/export.rb
- lib/dbus/error.rb
- lib/dbus/message.rb
- lib/dbus/matchrule.rb
- lib/dbus/marshall.rb
- lib/dbus/introspect.rb
- lib/dbus/auth.rb
- lib/dbus/bus.rb
- lib/dbus/type.rb

### Namespace

- MODULE DBus::Type
- CLASS DBus::ASessionBus
- CLASS DBus::ASystemBus
- CLASS DBus::AuthenticationFailed
- CLASS DBus::Authenticator
- CLASS DBus::Client
- CLASS DBus::Connection
- CLASS DBus::DBusCookieSHA1
- CLASS DBus::Error
- CLASS DBus::ErrorMessage
- CLASS DBus::External
- CLASS DBus::FormalParameter
- CLASS DBus::IncompleteBufferException
- CLASS DBus::Interface
- CLASS DBus::InterfaceElement
- CLASS DBus::IntrospectXMLParser
- CLASS DBus::InvalidClassDefinition
- CLASS DBus::InvalidDestinationName
- CLASS DBus::InvalidIntrospectionData
- CLASS DBus::InvalidMethodName
- CLASS DBus::InvalidPacketException
- CLASS DBus::InvalidParameters
- CLASS DBus::Main
- CLASS DBus::MatchRule
- CLASS DBus::MatchRuleException
- CLASS DBus::Message
- CLASS DBus::Method
- CLASS DBus::MethodNotImplemented
- CLASS DBus::MethodReturnMessage
- CLASS DBus::Node
- CLASS DBus::Object
- CLASS DBus::PacketMarshaller
- CLASS DBus::PacketUnmarshaller
- CLASS DBus::ProxyObject
- CLASS DBus::ProxyObjectFactory
- CLASS DBus::ProxyObjectInterface
- CLASS DBus::RemoteBus
- CLASS DBus::Service
- CLASS DBus::SessionBus
- CLASS DBus::Signal
- CLASS DBus::SystemBus
- CLASS DBus::TypeException
- CLASS DBus::UnknownSignal

### Methods

- ::error
- ::session_bus
- ::system_bus
- ::type
- ::variant

### Files

- README

### Class/Module Index

Quicksearch

- DBus
- DBus::ASessionBus
- DBus::ASystemBus
- DBus::AuthenticationFailed
- DBus::Authenticator
- DBus::Client
- DBus::Connection
- DBus::Connection::NameRequestError
- DBus::DBusCookieSHA1
- DBus::Error
- DBus::ErrorMessage
- DBus::External
- DBus::FormalParameter
- DBus::IncompleteBufferException
- DBus::Interface
- DBus::InterfaceElement
- DBus::IntrospectXMLParser
- DBus::InvalidClassDefinition
- DBus::InvalidDestinationName
- DBus::InvalidIntrospectionData
- DBus::InvalidMethodName
- DBus::InvalidPacketException
- DBus::InvalidParameters
- DBus::Main
- DBus::MatchRule
- DBus::MatchRuleException
- DBus::Message
- DBus::Method
- DBus::MethodNotImplemented
- DBus::MethodReturnMessage
- DBus::Node
- DBus::Object
- DBus::Object::UndefinedInterface
- DBus::PacketMarshaller
- DBus::PacketUnmarshaller
- DBus::ProxyObject
- DBus::ProxyObjectFactory
- DBus::ProxyObjectInterface
- DBus::RemoteBus
- DBus::Service
- DBus::SessionBus
- DBus::Signal
- DBus::SystemBus
- DBus::Type
- DBus::Type::Parser
- DBus::Type::SignatureException
- DBus::Type::Type
- DBus::TypeException
- DBus::UnknownSignal
- Integer

No matching classes.

# DBus

# D-Bus main module

Module containing all the D-Bus modules and classes.

error.rb

This file is part of the ruby-dbus project Copyright (C) 2007 Arnaud Cornet and Paul van Tilburg

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software Foundation. See the file "COPYING" for the exact licensing terms.

# D-Bus main module

Module containing all the D-Bus modules and classes.

This file is part of the ruby-dbus project Copyright (C) 2007 Arnaud Cornet and Paul van Tilburg

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software Foundation. See the file "COPYING" for the exact licensing terms.

# D-Bus main module

Module containing all the D-Bus modules and classes.

# D-Bus main module

Module containing all the D-Bus modules and classes.

dbus/type.rb - module containing low-level D-Bus data type information

This file is part of the ruby-dbus project Copyright (C) 2007 Arnaud Cornet and Paul van Tilburg

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software Foundation. See the file "COPYING" for the exact licensing terms.

### Constants

BIG_END

  Byte signifying big endianness.

HOST_END

  Byte signifying the host's endianness.

InterfaceElementRE

  Regular expressions that should match all interface names.

LIL_END

  Byte signifying little endianness.

MethodSignalRE

  Regular expressions that should match all method names.

SystemSocketName

  Default socket name for the system bus.

### Public Class Methods

error(name = "org.freedesktop.DBus.Error.Failed") click to toggle source

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

session_bus() click to toggle source

Shortcut for the SessionBus instance

    # File lib/dbus/bus.rb, line 794
    def DBus.session_bus
      SessionBus.instance
    end

system_bus() click to toggle source

Shortcut for the SystemBus instance

    # File lib/dbus/bus.rb, line 789
    def DBus.system_bus
      SystemBus.instance
    end

type(string_type) click to toggle source

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

variant(string_type, value) click to toggle source

Make an explicit [Type, value] pair

    # File lib/dbus/type.rb, line 217
    def variant(string_type, value)
      [type(string_type), value]
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.