Module: GirFFI::MethodSetup

Included in:
ClassBase, EnumLikeBase, InterfaceBase, ModuleBase
Defined in:
lib/gir_ffi/method_setup.rb

Overview

Methods for setting up class methods

Instance Method Summary collapse

Instance Method Details

#setup_method(name) ⇒ Object



6
7
8
# File 'lib/gir_ffi/method_setup.rb', line 6

def setup_method(name)
  gir_ffi_builder.setup_method name
end

#setup_method!(name) ⇒ Object



10
11
12
# File 'lib/gir_ffi/method_setup.rb', line 10

def setup_method!(name)
  setup_method name or raise "Unknown method #{name}"
end