Class: GObjectIntrospection::Loader::ArgumentsBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/gobject-introspection/loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info, method_name) ⇒ ArgumentsBuilder

Returns a new instance of ArgumentsBuilder.



683
684
685
686
687
688
689
690
691
# File 'lib/gobject-introspection/loader.rb', line 683

def initialize(info, method_name)
  @info = info
  @method_name = method_name

  @prepared = false

  @arguments = nil
  @block = nil
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



681
682
683
# File 'lib/gobject-introspection/loader.rb', line 681

def arguments
  @arguments
end

#blockObject (readonly)

Returns the value of attribute block.



682
683
684
# File 'lib/gobject-introspection/loader.rb', line 682

def block
  @block
end

Instance Method Details

#build(arguments, block) ⇒ Object



693
694
695
696
697
698
699
700
701
# File 'lib/gobject-introspection/loader.rb', line 693

def build(arguments, block)
  prepare

  @arguments = arguments
  @block = block

  build_arguments
  validate_arguments
end