AdaptFunction
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
class Object
trait Matchable
class Any
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases: