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.



637
638
639
640
641
642
643
644
645
# File 'lib/gobject-introspection/loader.rb', line 637

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.



635
636
637
# File 'lib/gobject-introspection/loader.rb', line 635

def arguments
  @arguments
end

#blockObject (readonly)

Returns the value of attribute block.



636
637
638
# File 'lib/gobject-introspection/loader.rb', line 636

def block
  @block
end

Instance Method Details

#build(arguments, block) ⇒ Object



647
648
649
650
651
652
653
654
655
# File 'lib/gobject-introspection/loader.rb', line 647

def build(arguments, block)
  prepare

  @arguments = arguments
  @block = block

  build_arguments
  validate_arguments
end