class GirFFI::Builder::Type::StructBased

Implements the creation of a class representing one of the types whose C representation is a struct, i.e., :object and :struct.

Public Instance Methods

pretty_print() click to toggle source
# File lib/gir_ffi/builder/type/struct_based.rb, line 15
def pretty_print
  buf = "class #{@classname}\n"
  buf << pretty_print_methods
  buf << "end"
end