Any.Enum
object Enum
- Source
- __.scala
class Object
trait Matchable
class Any
Member
Companion is a type to be extended by all enum
companion objects to integrate them with Scalqa containers.
This is a recommended step, which might not be nessesasy in simple cases
enum Direction:
case Up,Down,Left,Right
object Direction extends Any.Enum.Companion[Direction]
Direction.~.tp
// Output
~(Up, Down, Left, Right)
- Source
- Companion.scala