Determines whether the passed thing is writable, i.e., the passed file is writable.
Determines whether the passed thing is writable, i.e., the passed file is writable.
the thing to check for writability
true
if the passed thing is writable, false
otherwise
Supertrait for typeclasses that enable the
be
writable
matcher syntax.A
Writability[T]
provides access to the "writable nature" of typeT
in such a way thatbe
writable
matcher syntax can be used with typeT
. AT
can be any type for which the concept of being writable makes sense, such asjava.io.File
. ScalaTest provides implicit implementation forjava.io.File
. You can enable thebe
writable
matcher syntax on your own typeU
by defining aWritability[U]
for the type and making it available implicitly.ScalaTest provides an implicit
Writability
instance forjava.io.File
and arbitary object withisWritable()
orisWritable
in theWritability
companion object.