Sha256: 0a3bec8fe2f2967781be0048a215f3ad7fe88b634fa5c68b57c82d280bb3ea3d

Contents?: true

Size: 257 Bytes

Versions: 7

Compression:

Stored size: 257 Bytes

Contents

module Finitio
  module Syntax
    module Expression
      include Node

      def compile(var_name)
        expr = "->(#{var_name}){ #{to_str} }"
        ::Kernel.eval(expr)
      end

    end # module Expression
  end # module Syntax
end # module Finitio

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
finitio-0.7.0.pre.rc2 lib/finitio/syntax/type/expression.rb
finitio-0.7.0.pre.rc1 lib/finitio/syntax/type/expression.rb
finitio-0.6.1 lib/finitio/syntax/type/expression.rb
finitio-0.6.0 lib/finitio/syntax/type/expression.rb
finitio-0.5.2 lib/finitio/syntax/type/expression.rb
finitio-0.5.1 lib/finitio/syntax/type/expression.rb
finitio-0.5.0 lib/finitio/syntax/type/expression.rb