Class: Sal::ExternalFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/sal/externalfunction.rb

Overview

This class represent an external function as chilf from the external library (dll)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(external, item) ⇒ ExternalFunction

Returns a new instance of ExternalFunction.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/sal/externalfunction.rb', line 10

def initialize( external, item )
  @external = external
  @item = item
  @name = nil
  @ordinal = -1
  @parameters = Array.new
  
  #@appears = 0
  #@defs = Array.new
  #@calls = Hash.new # hash with files whith a child code line array
  
  _analyze
  @key = @external.name + "::" + @name
end

Instance Attribute Details

#externalObject

:appears, :defs, :calls



25
26
27
# File 'lib/sal/externalfunction.rb', line 25

def external
  @external
end

#itemObject

:appears, :defs, :calls



25
26
27
# File 'lib/sal/externalfunction.rb', line 25

def item
  @item
end

#keyObject

:appears, :defs, :calls



25
26
27
# File 'lib/sal/externalfunction.rb', line 25

def key
  @key
end

#nameObject

:appears, :defs, :calls



25
26
27
# File 'lib/sal/externalfunction.rb', line 25

def name
  @name
end

#ordinalObject

:appears, :defs, :calls



25
26
27
# File 'lib/sal/externalfunction.rb', line 25

def ordinal
  @ordinal
end

#parametersObject

:appears, :defs, :calls



25
26
27
# File 'lib/sal/externalfunction.rb', line 25

def parameters
  @parameters
end