Module: Ruff::Standard::CurrentTime

Defined in:
lib/ruff/standard/current_time.rb

Overview

CurrentTime provides an effect CurrentTime.eff and the implementation returning Time.now .

The module has an instance of Instance and provides its methods as module method.

See Also:

Defined Under Namespace

Classes: Instance

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#effObject (readonly)



57
58
59
# File 'lib/ruff/standard/current_time.rb', line 57

def eff
  @eff
end

Class Method Details

.getObject



45
46
47
# File 'lib/ruff/standard/current_time.rb', line 45

def get
  @inst.get
end

.with(&th) ⇒ Object



50
51
52
# File 'lib/ruff/standard/current_time.rb', line 50

def with(&th)
  @inst.with(&th)
end