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.
572 573 574 575 576 577 578 579 580 |
# File 'lib/gobject-introspection/loader.rb', line 572 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.
570 571 572 |
# File 'lib/gobject-introspection/loader.rb', line 570 def arguments @arguments end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
571 572 573 |
# File 'lib/gobject-introspection/loader.rb', line 571 def block @block end |
Instance Method Details
#build(arguments, block) ⇒ Object
582 583 584 585 586 587 588 589 590 |
# File 'lib/gobject-introspection/loader.rb', line 582 def build(arguments, block) prepare @arguments = arguments @block = block build_arguments validate_arguments end |