Sha256: 61859a9599ec1925c2f906a01cd9faae0625e33130bb64abe2b1035c2d37b2d0
Contents?: true
Size: 591 Bytes
Versions: 9
Compression:
Stored size: 591 Bytes
Contents
# frozen_string_literal: true require 'gir_ffi/builders/base_type_builder' module GirFFI module Builders # Implements the creation of a constant. Though semantically not a # type, its build method is like that of the types, in that it is # triggered by a missing constant in the parent namespace. The # constant will be attached to the appropriate namespace module. class ConstantBuilder < BaseTypeBuilder def build_class @klass ||= optionally_define_constant namespace_module, @classname do info.value end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems