Class: DBus::Data::StringLike
Overview
String, ObjectPath, or Signature.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ StringLike
constructor
A new instance of StringLike.
Methods inherited from Basic
basic?, from_typed, type, #type
Methods inherited from Base
#==, assert_type_matches_class, basic?, #eql?, from_typed, #type, type_code
Constructor Details
#initialize(value) ⇒ StringLike
Returns a new instance of StringLike.
404 405 406 407 408 409 410 411 412 |
# File 'lib/dbus/data.rb', line 404 def initialize(value) if value.is_a?(self.class) value = value.value else self.class.validate_raw!(value) end super(value) end |