Class: GirFFI::Builders::SignalClosureBuilder
- Inherits:
-
GirFFI::BaseTypeBuilder
- Object
- GirFFI::BaseTypeBuilder
- GirFFI::Builders::SignalClosureBuilder
- Defined in:
- lib/gir_ffi/builders/signal_closure_builder.rb
Overview
Implements the creation of a closure class for handling a particular signal. The type will be attached to the appropriate class.
Instance Attribute Summary
Attributes inherited from GirFFI::BaseTypeBuilder
Instance Method Summary collapse
Methods inherited from GirFFI::BaseTypeBuilder
#build_class, #initialize, #instantiate_class
Methods included from GirFFI::BuilderHelper
#get_or_define_class, #get_or_define_module, #optionally_define_constant
Constructor Details
This class inherits a constructor from GirFFI::BaseTypeBuilder
Instance Method Details
#marshaller_definition ⇒ Object
20 21 22 |
# File 'lib/gir_ffi/builders/signal_closure_builder.rb', line 20 def marshaller_definition MarshallingMethodBuilder.for_signal(info).method_definition end |
#setup_class ⇒ Object
11 12 13 14 |
# File 'lib/gir_ffi/builders/signal_closure_builder.rb', line 11 def setup_class setup_constants klass.class_eval marshaller_definition, __FILE__, __LINE__ end |
#setup_method(_method) ⇒ Object
16 17 18 |
# File 'lib/gir_ffi/builders/signal_closure_builder.rb', line 16 def setup_method(_method) nil end |