A type class providing evidence for parsing type T as a flag value.
Any class that is to be provided as a flaggable value must have an
accompanying implicit Flaggable (contained within a companion object of the
class in question) for converting a string to an object of that type. For
instance, to make a hypothetical type called Foo flaggable:
A type class providing evidence for parsing type
T
as a flag value.Any class that is to be provided as a flaggable value must have an accompanying implicit
Flaggable
(contained within a companion object of the class in question) for converting a string to an object of that type. For instance, to make a hypothetical type calledFoo
flaggable:For simple implicit definitions based on existing
String => T
functions, use theFlaggable.mandatory
function:[1] http://en.wikipedia.org/wiki/Type_class