Sha256: 03a4defbcd357ecfca911297580ace63d567c1c6f8f04688f17b022aa5e32b97

Contents?: true

Size: 344 Bytes

Versions: 6

Compression:

Stored size: 344 Bytes

Contents

require "bigdecimal"
require "dentaku/calculator"
require "dentaku/version"

module Dentaku
  def self.evaluate(expression, data={})
    calculator.evaluate(expression, data)
  end

  private

  def self.calculator
    @calculator ||= Dentaku::Calculator.new
  end
end

def Dentaku(expression, data={})
  Dentaku.evaluate(expression, data)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dentaku-1.2.6 lib/dentaku.rb
dentaku-1.2.5 lib/dentaku.rb
dentaku-1.2.4 lib/dentaku.rb
dentaku-1.2.3 lib/dentaku.rb
dentaku-1.2.2 lib/dentaku.rb
dentaku-1.2.1 lib/dentaku.rb