Module: Ruff

Defined in:
lib/ruff.rb,
lib/ruff/version.rb

Defined Under Namespace

Modules: Standard, Throws Classes: Effect, Handler

Constant Summary collapse

VERSION =
'2.1.0'

Class Method Summary collapse

Class Method Details

.handlerObject

is alias for Handler.new

Examples:

log_handler = Ruff.handler.on(Log){|msg, k|
  puts "Logger: #{msg}"
  k[]
}

See Also:



28
29
30
# File 'lib/ruff.rb', line 28

def handler
  Handler.new
end

.instanceObject

is alias for Effect.new

Examples:

Log = Ruff.instance #==> Ruff::Effect.new

See Also:



16
17
18
# File 'lib/ruff.rb', line 16

def instance
  Effect.new
end