ScalaTime

abstract class ScalaTime(TZ: RuntimeTZ) extends Injector
trait Injector
trait DependencyPoolRef[LocalizedContainer]
class Object
trait Matchable
class Any

Type members

Classlikes

class LocalDateTimeBs(value: LocalDateTime)
class StringBs(value: String)
class UnixTimeBs(value: Long)
class ZonedDateTimeBs(value: ZonedDateTime)

Value members

Concrete methods

def now: ZonedDateTime

Get a current time.

Get a current time.

import refuel.lang.ScalaTime._
val currentTime = now

Inherited methods

def closed[T](ctx: LocalizedContainer => T): T
Inherited from
Injector
def extended[T](ctx: LocalizedContainer => T)(using _c: LocalizedContainer): T

Create a container shade. You can't nest shading.

Create a container shade. You can't nest shading.

 class A(value: String)
 class B(a: A)
 class C(b: B)
 class D(c: C)
 shade { implicit c =>
   new BStub().index[B]()
   inject[D].run // Use BStub in C in D
 }
 inject[D].run // Use A in B in C in D
Type Params
T

Result type

Value Params
ctx

Shaded container function.

Inherited from
Injector

Inherited fields

var `__refuel_cRef`: Option[LocalizedContainer]
Inherited from
DependencyPoolRef

Implicits

Inherited implicits

implicit def `__refuel_c`: LocalizedContainer
Inherited from
DependencyPoolRef