Sha256: 4c23653ece1f4e56a1ffa88289515767ad87ac2177e92b876493e35568f40a84

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

module Qrb
  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 Qrb

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qrb-0.3.0 lib/qrb/syntax/constraint_def.rb