Class: Sal::External
- Inherits:
-
Object
- Object
- Sal::External
- Defined in:
- lib/sal/external.rb
Overview
The class represent an included external library (dll)
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#functions ⇒ Object
Getter of the dll functions (lazy loading).
-
#initialize(item) ⇒ External
constructor
A new instance of External.
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
#item ⇒ Object
Returns the value of attribute item.
14 15 16 |
# File 'lib/sal/external.rb', line 14 def item @item end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/sal/external.rb', line 14 def name @name end |
Instance Method Details
#functions ⇒ Object
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 |