class GirFFI::Builder::Type::Enum

Implements the creation of an enum or flags type. The type will be attached to the appropriate namespace module, and will be defined as an enum for FFI.

Public Instance Methods

pretty_print() click to toggle source
# File lib/gir_ffi/builder/type/enum.rb, line 10
def pretty_print
  "#{@classname} = Lib.enum #{enum_sym.inspect}, #{value_spec.inspect}"
end