OCHamcrest
Public Member Functions | Static Public Member Functions | Protected Attributes
HCStringDescription Class Reference

An HCDescription that is stored as a string. More...

Inheritance diagram for HCStringDescription:
Inheritance graph
[legend]

List of all members.

Public Member Functions

(instancetype) - init
 Returns an initialized HCStringDescription object that is empty.

Static Public Member Functions

(NSString *) + stringFrom:
 Returns the description of an HCSelfDescribing object as a string.
(instancetype) + stringDescription
 Returns an empty description.

Protected Attributes

NSMutableString * accumulator

Detailed Description

An HCDescription that is stored as a string.


Member Function Documentation

- (instancetype) init

Returns an initialized HCStringDescription object that is empty.

+ (instancetype) stringDescription

Returns an empty description.

+ (NSString *) stringFrom: (id< HCSelfDescribing >)  selfDescribing

Returns the description of an HCSelfDescribing object as a string.

Parameters:
selfDescribingThe object to be described.
Returns:
The description of the object.

Member Data Documentation

- (NSMutableString*) accumulator [protected]