# Instance methods

## Public

### `Wrap.prototype.getClosing()`

Gets the [closing](https://docs.angular-package.dev/text/basic-concepts#closing) of the wrap by returning the [`#closing`](https://docs.angular-package.dev/text/wrapper/instance-properties#closing) property of the specified object.

{% code title="wrap.class.ts" %}

```typescript
public getClosing(): Closing {
  return this.#closing;
}
```

{% endcode %}

#### Returns

The **return value** is the wrap closing of a generic type variable [`Closing`](https://docs.angular-package.dev/text/wrapper/generic-type-variables#wrap-less-than...-closing-greater-than).

### `Wrap.prototype.getOpening()`

Gets the [opening](https://docs.angular-package.dev/text/basic-concepts#opening) of the wrap by returning the [`#opening`](https://docs.angular-package.dev/text/wrapper/instance-properties#opening) property of the specified object.

{% code title="wrap.class.ts" %}

```typescript
public getOpening(): Opening {
  return this.#opening;
}
```

{% endcode %}

#### Returns

The **return value** is the wrap opening of a generic type variable [`Opening`](https://docs.angular-package.dev/text/wrapper/generic-type-variables#wrap-less-than-opening-...greater-than).

### `Wrap.prototype.getWrap()`

Gets the [wrap](https://docs.angular-package.dev/text/basic-concepts#wrap), primitive value consists of the [opening](https://docs.angular-package.dev/text/basic-concepts#opening) and [closing](https://docs.angular-package.dev/text/basic-concepts#closing).

{% code title="wrap.class.ts" %}

```typescript
public get(): `${Opening}${Closing}` {
  return this.valueOf();
}
```

{% endcode %}

#### Returns

The **return value** is the wrap consists of the opening and closing of a generic type variable [`Opening`](https://docs.angular-package.dev/text/wrapper/generic-type-variables#wrap-less-than-opening-...greater-than) and [`Closing`](https://docs.angular-package.dev/text/wrapper/generic-type-variables#wrap-less-than...-closing-greater-than) on the template.

### `Wrap.prototype.valueOf()`

Returns the [wrap](https://docs.angular-package.dev/text/basic-concepts#wrap), primitive value of the specified [`Wrap`](https://docs.angular-package.dev/text/wrapper/wrap) object.

{% code title="wrap.class.ts" %}

```typescript
public valueOf(): `${Opening}${Closing}` {
  return super.valueOf() as `${Opening}${Closing}`;
}
```

{% endcode %}

#### Returns

The **return value** is a generic type variable [`Opening`](https://docs.angular-package.dev/text/wrapper/generic-type-variables#wrap-less-than-opening-...greater-than) and [`Closing`](https://docs.angular-package.dev/text/wrapper/generic-type-variables#wrap-less-than...-closing-greater-than) on the template, if properly defined, or an empty [`string`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
