Module: Ruleby

Included in:
Rulebook
Defined in:
lib/core/atoms.rb,
lib/ruleby.rb,
lib/rulebook.rb,
lib/core/nodes.rb,
lib/core/utils.rb,
lib/core/engine.rb,
lib/dsl/ferrari.rb,
lib/rule_helper.rb,
lib/core/patterns.rb

Overview

This file is part of the Ruleby project (ruleby.org)

This application is free software; you can redistribute it and/or modify it under the terms of the Ruby license defined in the LICENSE.txt file.

Copyright © 2007 Joe Kutner and Matt Smith. All rights reserved.

  • Authors: Joe Kutner

Defined Under Namespace

Modules: Core, Ferrari, RuleHelper Classes: GeneratedTag, Rulebook

Instance Method Summary collapse

Instance Method Details

#engine(name) {|e| ... } ⇒ Object

helper classes for using ruleby go here

Yields:

  • (e)


17
18
19
20
21
# File 'lib/ruleby.rb', line 17

def engine(name, &block)
  e = Core::Engine.new
  yield e if block_given?
  return e
end