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.
Defined Under Namespace
Classes: Instance
Instance Attribute Summary collapse
- #eff ⇒ Object readonly
Class Method Summary collapse
Instance Attribute Details
#eff ⇒ Object (readonly)
57 58 59 |
# File 'lib/ruff/standard/current_time.rb', line 57 def eff @eff end |
Class Method Details
.get ⇒ Object
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 |