Sha256: 0cc05d5272611ccec3c58ecbb798dceba0eb4357baf7355cec7ef1a7d3812903

Contents?: true

Size: 228 Bytes

Versions: 3

Compression:

Stored size: 228 Bytes

Contents

module Qrb
  module Syntax
    module Expression

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

    end # module Expression
  end # module Syntax
end # module Qrb

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qrb-0.3.0 lib/qrb/syntax/expression.rb
qrb-0.2.0 lib/qrb/syntax/expression.rb
qrb-0.1.0 lib/qrb/syntax/expression.rb