Class: Comet::DSL::Library

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, path: nil) ⇒ Library

Returns a new instance of Library.



4
5
6
7
# File 'lib/comet/dsl/library.rb', line 4

def initialize(name, path: nil)
  @name = name
  @path = path
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/comet/dsl/library.rb', line 13

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/comet/dsl/library.rb', line 9

def to_s
  "library #{@name}"
end

#validate!Object



16
17
18
# File 'lib/comet/dsl/library.rb', line 16

def validate!
  true
end