Class: CKick::LibraryLink
- Inherits:
-
Object
- Object
- CKick::LibraryLink
- Defined in:
- lib/ckick/library_link.rb
Instance Method Summary collapse
- #cmake ⇒ Object
-
#initialize(args = {}) ⇒ LibraryLink
constructor
A new instance of LibraryLink.
- #raw_flag ⇒ Object
- #to_hash_element ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ LibraryLink
Returns a new instance of LibraryLink.
9 10 11 12 13 |
# File 'lib/ckick/library_link.rb', line 9 def initialize args={} name = args[:name] || "" raise CKick::IllegalInitializationError, "No name provided to library link" unless name.is_a?(String) && !name.empty? @name = name end |
Instance Method Details
#cmake ⇒ Object
27 28 29 |
# File 'lib/ckick/library_link.rb', line 27 def cmake @name end |
#raw_flag ⇒ Object
23 24 25 |
# File 'lib/ckick/library_link.rb', line 23 def raw_flag "-l#{@name}" end |
#to_hash_element ⇒ Object
15 16 17 |
# File 'lib/ckick/library_link.rb', line 15 def to_hash_element @name end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/ckick/library_link.rb', line 19 def to_s @name end |