Sha256: 171c867b0c39382a3bb3083c0c9a8aac65060454cf19a26451ce16e74c9caa23

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

module Qrb
  module Syntax
    module Attribute

      def compile(factory)
        factory.attribute(attribute_name.to_sym, type.compile(factory))
      end

      def to_ast
        [:attribute, attribute_name.to_s, type.to_ast]
      end

    end # module BuiltinType
  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/attribute.rb