Class: Sal::Library

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

Overview

The class represents a single file include

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#itemObject

Returns the value of attribute item.



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

def item
  @item
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end