class DBus::Data::Container

Contains one or more other values.

Attributes

type[R]

For containers, the type varies among instances @see Base#type

Public Class Methods

basic?() click to toggle source
# File lib/dbus/data.rb, line 513
def self.basic?
  false
end
fixed?() click to toggle source
# File lib/dbus/data.rb, line 517
def self.fixed?
  false
end

Public Instance Methods

eql?(other) click to toggle source

Hash key equality See ruby-doc.org/core-3.0.0/Object.html#method-i-eql-3F Stricter than #== (RSpec: eq), 1==1.0 but 1.eql(1.0)->false

# File lib/dbus/data.rb, line 538
def eql?(other)
  return false unless other.class == self.class

  other.exact_value.eql?(exact_value)
end
exact_value() click to toggle source

@return something that is, or contains, {Data::Base}.

Er, this docs kinda sucks.
# File lib/dbus/data.rb, line 527
def exact_value
  @value
end
value() click to toggle source
# File lib/dbus/data.rb, line 531
def value
  @value.map(&:value)
end