Sha256: d0bda2849219a120fb13927e198a836aa7dd285fbe528ff3a61a3ea105b44ce0
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
module Qrb module Syntax module UnnamedConstraint def compile(var_name) { predicate: expression.compile(var_name) } end def to_ast(var_name) [ :constraint, "default", [:fn, [:parameters, var_name], [:source, expression.to_s.strip]] ] end end # module UnnamedConstraint end # module Syntax end # module Qrb
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | lib/qrb/syntax/unnamed_constraint.rb |