Class: DBus::Data::StringLike

Inherits:
Basic show all
Defined in:
lib/dbus/data.rb

Overview

Direct Known Subclasses

ObjectPath, Signature, String

Instance Attribute Summary

Attributes inherited from Base

#value

Class Method Summary collapse

Instance Method Summary collapse

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

Class Method Details

.fixed?Boolean

Returns:



400
401
402
# File 'lib/dbus/data.rb', line 400

def self.fixed?
  false
end