Class: Sal::Library
- Inherits:
-
Object
- Object
- Sal::Library
- Defined in:
- lib/sal/library.rb
Overview
The class represents a single file include
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) ⇒ Library
constructor
A new instance of Library.
Constructor Details
#initialize(item) ⇒ Library
Returns a new instance of Library.
8 9 10 11 12 |
# File 'lib/sal/library.rb', line 8 def initialize( item ) @item = item item.code =~ /File Include:\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/library.rb', line 14 def item @item end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/sal/library.rb', line 14 def name @name end |