class GirFFI::Builder::Type::Constant

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.

Public Instance Methods

pretty_print() click to toggle source
# File lib/gir_ffi/builder/type/constant.rb, line 11
def pretty_print
  "#{@classname} = #{info.value.inspect}"
end