Class: Handy::ValueObject

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

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.

Parameters:

  • string (String)

    the string to store

Instance Method Details

#copy_value(dest) ⇒ nil

Copy data from the contained [structGObject.Value] into dest.

Parameters:

  • dest (GObject::Value)

    value with correct type to copy into

Returns:

  • (nil)

#dup_stringString

Gets a copy of the contained string if the value is of type G_TYPE_STRING.

Returns:

  • (String)

    a copy of the contained string

#stringString

Returns the contained string if the value is of type G_TYPE_STRING.

Returns:

  • (String)

    the contained string

#valueGObject::Value

The contained value.

Returns:

  • (GObject::Value)

    value

#value=(value) ⇒ GObject::Value

The contained value.

Parameters:

  • value (GObject::Value)

Returns:

  • (GObject::Value)

    value

  • (GObject::Value)

    value