Sha256: 5956a363c44cc36c1e10d9792c207c9da4ef33e73ae07c3bb4ba9f8599e6727e
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
module Finitio 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 Finitio
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | lib/finitio/syntax/unnamed_constraint.rb |
finitio-0.4.0 | lib/finitio/syntax/unnamed_constraint.rb |