README.md in pastel-0.5.0 vs README.md in pastel-0.5.1

- old
+ new

@@ -122,12 +122,12 @@ ```ruby error = pastel.red.on_bold.detach warning = pastel.yellow.detach -puts error('Error!') -puts warning('Warning') +puts error.('Error!') +puts warning.('Warning') ``` ## 2 Interface ### 2.1 Color @@ -152,15 +152,17 @@ This method will be useful in situations where colors are provided as a list of parameters that have been generated dynamically. ### 2.3 Detach -The `detach` method allows to keep all the coloring for later reference. This method is useful when detached colors are being resued frequently and thus shorthand version is preferred. +The `detach` method allows to keep all the associated colors with the detached instance for later reference. This method is useful when detached colors are being reused frequently and thus shorthand version is preferred. The detached object can be invoked using `call` method or it's shorthand `.()`, as well as array like access `[]`. For example, the following are equivalent examples of detaching colors: ```ruby notice = pastel.blue.bold.detach -puts notice.call('Unicorns running') -puts notice.call('They are super wild') + +notice.call('Unicorns running') +notice.('Unicorns running') +notice['Unicorns running'] ``` ### 2.4 Strip Strip only color sequence characters from the provided strings and preserve any movement codes or other escape sequences. The return value will be either array of modified strings or a single string. The arguments are not modified.