Sha256: fba6134919b7dfb859c8fe7df7d846265b5a683d71316ea5729cdcf46e097bc1
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
require 'parslet' require 'unitwise/expression/matcher' require 'unitwise/expression/parser' require 'unitwise/expression/transformer' require 'unitwise/expression/composer' require 'unitwise/expression/decomposer' module Unitwise module Expression class << self def compose(terms) Composer.new(terms).expression end def decompose(expression) begin Decomposer.new(expression).terms rescue ExpressionError nil end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unitwise-0.2.0 | lib/unitwise/expression.rb |
unitwise-0.1.0 | lib/unitwise/expression.rb |