Class: DBus::Data::Basic
- Inherits:
-
Base
- Object
- Base
- DBus::Data::Basic
show all
- Defined in:
- lib/dbus/data.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
#value
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#==, assert_type_matches_class, #eql?, fixed?, #initialize, type_code
Class Method Details
115
116
117
|
# File 'lib/dbus/data.rb', line 115
def self.basic?
true
end
|
.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
|
120
121
122
123
|
# File 'lib/dbus/data.rb', line 120
def self.type
@type ||= Type.new(type_code).freeze
end
|
Instance Method Details
125
126
127
128
|
# File 'lib/dbus/data.rb', line 125
def type
self.class.type
end
|