Module: Blur::Script::DSL
- Included in:
- Extension, Blur::Script
- Defined in:
- library/blur/script/dsl.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#Author(*authors) ⇒ Object
(also: #Authors)
Set the author.
-
#author ⇒ Object
The name of the author(s).
-
#Description(description) ⇒ Object
Set the description.
-
#description ⇒ Object
The description.
-
#name ⇒ Object
The name of the script.
-
#Version(version) ⇒ Object
Set the version.
-
#version ⇒ Object
The script version.
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 |
# File 'library/blur/script/dsl.rb', line 6 def self.included base base.send :attr_accessor, :__name base.send :attr_accessor, :__author base.send :attr_accessor, :__version base.send :attr_accessor, :__description end |
Instance Method Details
#Author(*authors) ⇒ Object Also known as: Authors
Set the author.
17 18 19 |
# File 'library/blur/script/dsl.rb', line 17 def Author * @__author = .join ', ' end |
#author ⇒ Object
Returns the name of the author(s).
41 |
# File 'library/blur/script/dsl.rb', line 41 def ; @__author end |
#Description(description) ⇒ Object
Set the description.
25 26 27 |
# File 'library/blur/script/dsl.rb', line 25 def Description description @__description = description end |
#description ⇒ Object
Returns the description.
47 |
# File 'library/blur/script/dsl.rb', line 47 def description; @__description end |
#name ⇒ Object
Returns the name of the script.
38 |
# File 'library/blur/script/dsl.rb', line 38 def name; @__name end |
#Version(version) ⇒ Object
Set the version.
33 34 35 |
# File 'library/blur/script/dsl.rb', line 33 def Version version @__version = version end |
#version ⇒ Object
Returns the script version.
44 |
# File 'library/blur/script/dsl.rb', line 44 def version; @__version end |