Class: GObjectIntrospection::Loader::ArgumentsBuilder
- Inherits:
-
Object
- Object
- GObjectIntrospection::Loader::ArgumentsBuilder
- Defined in:
- lib/gobject-introspection/loader.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Instance Method Summary collapse
- #build(arguments, block) ⇒ Object
-
#initialize(info, method_name) ⇒ ArgumentsBuilder
constructor
A new instance of ArgumentsBuilder.
Constructor Details
#initialize(info, method_name) ⇒ ArgumentsBuilder
Returns a new instance of ArgumentsBuilder.
644 645 646 647 648 649 650 651 652 |
# File 'lib/gobject-introspection/loader.rb', line 644 def initialize(info, method_name) @info = info @method_name = method_name @prepared = false @arguments = nil @block = nil end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
642 643 644 |
# File 'lib/gobject-introspection/loader.rb', line 642 def arguments @arguments end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
643 644 645 |
# File 'lib/gobject-introspection/loader.rb', line 643 def block @block end |
Instance Method Details
#build(arguments, block) ⇒ Object
654 655 656 657 658 659 660 661 662 |
# File 'lib/gobject-introspection/loader.rb', line 654 def build(arguments, block) prepare @arguments = arguments @block = block build_arguments validate_arguments end |