Class: GirFFI::NullArgumentBuilder
- Inherits:
-
Object
- Object
- GirFFI::NullArgumentBuilder
- Defined in:
- lib/gir_ffi/builders/null_argument_builder.rb
Overview
Argument builder that does nothing. Implements the Null Object pattern.
Instance Method Summary collapse
- #array_length_idx ⇒ Object
- #call_argument_name ⇒ Object
- #capture_variable_name ⇒ Object
-
#initialize ⇒ NullArgumentBuilder
constructor
A new instance of NullArgumentBuilder.
- #method_argument_name ⇒ Object
- #post_conversion ⇒ Object
- #post_converted_name ⇒ Object
- #pre_conversion ⇒ Object
- #return_value_name ⇒ Object
Constructor Details
#initialize ⇒ NullArgumentBuilder
Returns a new instance of NullArgumentBuilder.
5 6 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 5 def initialize(*) end |
Instance Method Details
#array_length_idx ⇒ Object
16 17 18 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 16 def array_length_idx -1 end |
#call_argument_name ⇒ Object
28 29 30 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 28 def call_argument_name nil end |
#capture_variable_name ⇒ Object
32 33 34 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 32 def capture_variable_name nil end |
#method_argument_name ⇒ Object
20 21 22 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 20 def method_argument_name nil end |
#post_conversion ⇒ Object
12 13 14 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 12 def post_conversion [] end |
#post_converted_name ⇒ Object
36 37 38 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 36 def post_converted_name nil end |
#pre_conversion ⇒ Object
8 9 10 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 8 def pre_conversion [] end |
#return_value_name ⇒ Object
24 25 26 |
# File 'lib/gir_ffi/builders/null_argument_builder.rb', line 24 def return_value_name nil end |