Module: Ruff::Standard

Defined in:
lib/ruff/standard.rb

Overview

Ruff::Standard provides several pre-defined effect handlers modules. Each module provides Instance class to instantiate and handle the indivisual effect instances.

Examples:

include Ruff::Standard

state1 = State::Instance.new
state2 = State::Instance.new

state1.with_init(3) {
state2.with_init(4) {
  state2.modify {|s| s + state1.get }

  puts state1.get #==> 3
  puts state2.get #==> 7
}}

Defined Under Namespace

Modules: Async, CurrentTime, Defer, DelimCtrl, MeasureTime, State