Skip to content

Allows you to process simple excel like formulas. (Needs some cleanup for mass use)

Notifications You must be signed in to change notification settings

stevestmartin/expression_processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressionProcessor

expression = ExpressionProcessor::Expression.new("MAX(10, SUM(A))")
expression.constants({:A => [1,3,5]})
expression.valid?([:A]) # specify constants that are allowed
expression.eval # => 10

About

Allows you to process simple excel like formulas. (Needs some cleanup for mass use)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages