class DBus::Data::Signature
Signature
string, zero or more single complete types. See also {DBus::Type}
Public Class Methods
alignment()
click to toggle source
# File lib/dbus/data.rb, line 486 def self.alignment 1 end
from_raw(value, mode:)
click to toggle source
# File lib/dbus/data.rb, line 501 def self.from_raw(value, mode:) if mode == :plain _types = validate_raw!(value) return value end new(value) end
size_class()
click to toggle source
# File lib/dbus/data.rb, line 490 def self.size_class Byte end
type_code()
click to toggle source
# File lib/dbus/data.rb, line 482 def self.type_code "g" end
validate_raw!(value)
click to toggle source
@return [::Array<Type>]
# File lib/dbus/data.rb, line 495 def self.validate_raw!(value) DBus.types(value) rescue Type::SignatureException => e raise InvalidPacketException, "Invalid signature: #{e.message}" end