Class: SWIG::Unknown

Inherits:
Object
  • Object
show all
Defined in:
lib/crequire/swig.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, context) ⇒ Unknown

Returns a new instance of Unknown.



59
60
61
62
63
# File 'lib/crequire/swig.rb', line 59

def initialize(name, context)
  @context = context
  @name = name
  @args = []
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



57
58
59
# File 'lib/crequire/swig.rb', line 57

def args
  @args
end

#nameObject

Returns the value of attribute name.



57
58
59
# File 'lib/crequire/swig.rb', line 57

def name
  @name
end

Instance Method Details

#*(other) ⇒ Object



65
66
67
# File 'lib/crequire/swig.rb', line 65

def *(other)
  @context << Function.new(other.name, other.args, @name + "*")
end

#to_sObject



69
70
71
# File 'lib/crequire/swig.rb', line 69

def to_s
  @context << Function.new(@name).to_sig
end

#to_swig_sObject



73
74
75
# File 'lib/crequire/swig.rb', line 73

def to_swig_s
  @context << Function.new(@name).to_swig
end