module Eldritch

Constants

VERSION

Public Class Methods

inject_dsl() click to toggle source

Injects the DSL in the main

This is automatically called when you call

require 'eldritch'

If you do not want to contaminate the main you can require eldritch/safe and include or extend Eldricth::DSL yourself.

require 'eldritch/safe'
module Sandbox
  include Eldritch::DSL  # for async blocks, together and sync
  extend Eldritch::DSL   # for async method declaration
end
# File lib/eldritch/safe.rb, line 22
def self.inject_dsl
  Object.send :include, Eldritch::DSL
end