Class: DBus::Data::Basic
Overview
A value that is not a Container.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#==, assert_type_matches_class, #eql?, fixed?, #initialize, type_code
Constructor Details
This class inherits a constructor from DBus::Data::Base
Class Method Details
.from_typed(value, type:) ⇒ Basic
133 134 135 136 |
# File 'lib/dbus/data.rb', line 133 def self.from_typed(value, type:) assert_type_matches_class(type) new(value) end |
Instance Method Details
#type ⇒ Object
125 126 127 128 |
# File 'lib/dbus/data.rb', line 125 def type # The basic types can do this, unlike the containers self.class.type end |