Module: Rucas

Defined in:
lib/rucas.rb,
lib/rucas/rewrite.rb,
lib/rucas/utility.rb,
lib/rucas/simplify.rb,
lib/rucas/symbolic.rb,
lib/rucas/extensions.rb

Defined Under Namespace

Modules: Extensions, Rewrite, Simplify, Symbolic, Utility Classes: Scope

Constant Summary collapse

VERSION =
'0.0.1'

Instance Method Summary collapse

Instance Method Details

#with_rucas(scope = Scope.new, &block) ⇒ Object

Interpret code in the block as Rucas code and return the result of the block.



41
42
43
# File 'lib/rucas.rb', line 41

def with_rucas scope=Scope.new, &block
  scope.rucas(&block)
end