Sha256: e3a26cd7429ef3e046a60f1ba70852f8276b93d52f69e1be819123cb4e0c229d

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

module Finitio
  module Syntax
    module ConstraintDef

      def compile(factory)
        constraints.compile(var_name.to_s)
      end

      def to_ast
        ast = constraints.to_ast(var_name.to_s)
        ast = [ast] if ast.first.is_a?(Symbol)
        ast
      end

    end # module ConstraintDef
  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/constraint_def.rb
finitio-0.4.0 lib/finitio/syntax/constraint_def.rb