Class: Handy::ValueObject
- Inherits:
-
Object
- Object
- Handy::ValueObject
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#copy_value(dest) ⇒ nil
Copy data from the contained [structGObject.Value] into dest.
-
#dup_string ⇒ String
Gets a copy of the contained string if the value is of type
G_TYPE_STRING. -
#initialize(string) ⇒ Handy::ValueObject
constructor
Creates a new
HdyValueObject. -
#string ⇒ String
Returns the contained string if the value is of type
G_TYPE_STRING. -
#value ⇒ GObject::Value
The contained value.
-
#value=(value) ⇒ GObject::Value
The contained value.
Constructor Details
#initialize(string) ⇒ Handy::ValueObject
Creates a new HdyValueObject.
This is a convenience method to create a [classValueObject] that stores a string taking ownership of it.
Instance Method Details
#copy_value(dest) ⇒ nil
Copy data from the contained [structGObject.Value] into dest.
#dup_string ⇒ String
Gets a copy of the contained string if the value is of type G_TYPE_STRING.
#string ⇒ String
Returns the contained string if the value is of type G_TYPE_STRING.
#value ⇒ GObject::Value
The contained value.
#value=(value) ⇒ GObject::Value
The contained value.