lib/dentaku.rb in dentaku-1.0.0 vs lib/dentaku.rb in dentaku-1.1.0

- old
+ new

@@ -1,10 +1,19 @@ +require "bigdecimal" require "dentaku/calculator" require "dentaku/version" module Dentaku def self.evaluate(expression, data={}) calculator.evaluate(expression, data) + end + + class UnboundVariableError < StandardError + attr_reader :unbound_variables + + def initialize(unbound_variables) + @unbound_variables = unbound_variables + end end private def self.calculator