Class ExtractorTrue
Subclass to do specialization of the extractor strategy class.
This spesialization do casting into a true boolean type. This class follows the pattern with inheritance from Lua classes.
Metamethods
ExtractorTrue:__index (key) | Lookup of missing class members. |
Methods
ExtractorTrue:create (...) | Create a new instance. |
ExtractorTrue:_init () | Initialize a new instance. |
ExtractorTrue:cast (str) | Cast the string into the correct type for this strategy. |
ExtractorTrue:placeholder () | Get the placeholder for this strategy. |
Metamethods
- ExtractorTrue:__index (key)
-
Lookup of missing class members.
Parameters:
- key string lookup of member
Returns:
anyRaises:
on wrong arguments
Methods
- ExtractorTrue:create (...)
-
Create a new instance.
Parameters:
- ... vararg forwarded to superclass create method
Returns:
self - ExtractorTrue:_init ()
-
Initialize a new instance.
Returns:
self - ExtractorTrue: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:
boolean trueRaises:
on wrong argumentsSee also:
- ExtractorTrue:placeholder ()
-
Get the placeholder for this strategy.
Returns:
string