Class ExtractorString

Subclass to do specialization of the extractor strategy class.

This spesialization do casting into a string type. This class follows the pattern with inheritance from Lua classes.

Metamethods

ExtractorString:__index (key) Lookup of missing class members.

Methods

ExtractorString:create (...) Create a new instance.
ExtractorString:_init () Initialize a new instance.
ExtractorString:cast (str) Cast the string into the correct type for this strategy.
ExtractorString:placeholder () Get the placeholder for this strategy.


Metamethods

ExtractorString:__index (key)
Lookup of missing class members.

Parameters:

Returns:

any

Raises:

on wrong arguments

Methods

ExtractorString:create (...)
Create a new instance.

Parameters:

Returns:

self
ExtractorString:_init ()
Initialize a new instance.

Returns:

self
ExtractorString:cast (str)
Cast the string into the correct type for this strategy. There are no safeguards for erroneous casts.

Parameters:

  • str string used as the extraction source

Returns:

string

Raises:

on wrong arguments

See also:

ExtractorString:placeholder ()
Get the placeholder for this strategy.

Returns:

string
generated by LDoc 1.4.6