Class: Sal::Function
- Inherits:
-
Object
- Object
- Sal::Function
- Defined in:
- lib/sal/function.rb
Overview
The class represents one function.
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(item) ⇒ Function
constructor
A new instance of Function.
Constructor Details
#initialize(item) ⇒ Function
Returns a new instance of Function.
8 9 10 11 12 |
# File 'lib/sal/function.rb', line 8 def initialize( item ) @item = item item.code =~ /Function:\s(\S+)/ @name = get_name(item.code) end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
14 15 16 |
# File 'lib/sal/function.rb', line 14 def item @item end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/sal/function.rb', line 14 def name @name end |