Sha256: 4b8233432439980216e72c60bfe451d562bca5fd5ed81514074924a7f3e29dfc

Contents?: true

Size: 323 Bytes

Versions: 18

Compression:

Stored size: 323 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
dentaku-1.0.0 lib/dentaku.rb
dentaku-0.2.14 lib/dentaku.rb
dentaku-0.2.13 lib/dentaku.rb
dentaku-0.2.12 lib/dentaku.rb
dentaku-0.2.11 lib/dentaku.rb
dentaku-0.2.10 lib/dentaku.rb
dentaku-0.2.9 lib/dentaku.rb
dentaku-0.2.8 lib/dentaku.rb
dentaku-0.2.7 lib/dentaku.rb
dentaku-0.2.6 lib/dentaku.rb
dentaku-0.2.5 lib/dentaku.rb
dentaku-0.2.4 lib/dentaku.rb
dentaku-0.2.3 lib/dentaku.rb
dentaku-0.2.2 lib/dentaku.rb
dentaku-0.2.1 lib/dentaku.rb
dentaku-0.1.3 lib/dentaku.rb
dentaku-0.1.2 lib/dentaku.rb
dentaku-0.1.1 lib/dentaku.rb