Allows users to create and evaluate simple mathematical expressions with changing variables.
Add this line to your application’s Gemfile:
gem 'expressions'
And then execute:
$ bundle
Or install it yourself as:
$ gem install expressions
e = Expression.new('A+12/2')
e.set_variable(:a, 5)
e.to_i # => 7
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)