Class: Sal::External

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

Overview

The class represent an included external library (dll)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item) ⇒ External

Returns a new instance of External.



8
9
10
11
12
# File 'lib/sal/external.rb', line 8

def initialize( item )
  @item = item
  @name = item.code.gsub(/Library name: /,"")
  @functions = nil
end

Instance Attribute Details

#itemObject

Returns the value of attribute item.



14
15
16
# File 'lib/sal/external.rb', line 14

def item
  @item
end

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/sal/external.rb', line 14

def name
  @name
end

Instance Method Details

#functionsObject

Getter of the dll functions (lazy loading)



17
18
19
20
21
22
# File 'lib/sal/external.rb', line 17

def functions
  if( @functions.nil? )            
    _analyze            
  end
  return @functions
end