Sha256: ec9ac598e00e19b181b96eed408daae7601644697f25c58559c901fe6dc3fc81

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module Finitio
  module Syntax
    module ExternalPair
      include Support

      def compile(factory)
        clazz = resolve_ruby_const(builtin_type_name.to_s)
        [ clazz.method(:dress), clazz.method(:undress) ]
      end

      def to_ast
        [ :external_pair, builtin_type_name.to_s ]
      end

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