Module: GirFFI::InstanceMethodSetup
- Included in:
- ClassBase, InterfaceBase
- Defined in:
- lib/gir_ffi/instance_method_setup.rb
Overview
Methods for setting up instance methods.
Depends on .gir_ffi_builder being defined in the extending class.
Instance Method Summary collapse
Instance Method Details
#setup_instance_method(name) ⇒ Object
8 9 10 |
# File 'lib/gir_ffi/instance_method_setup.rb', line 8 def setup_instance_method(name) gir_ffi_builder.setup_instance_method name end |
#setup_instance_method!(name) ⇒ Object
12 13 14 |
# File 'lib/gir_ffi/instance_method_setup.rb', line 12 def setup_instance_method!(name) setup_instance_method name or raise "Unknown method #{name}" end |