Class: Comet::DSL::Library
- Inherits:
-
Object
- Object
- Comet::DSL::Library
- Defined in:
- lib/comet/dsl/library.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path: nil) ⇒ Library
constructor
A new instance of Library.
- #to_s ⇒ Object
- #validate! ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/comet/dsl/library.rb', line 13 def name @name end |
#path ⇒ Object (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_s ⇒ Object
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 |