Class: Sal::Function

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

Overview

The class represents one function.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#itemObject

Returns the value of attribute item.



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

def item
  @item
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end