Class: FrameworkGenerate::Script
- Inherits:
-
Object
- Object
- FrameworkGenerate::Script
- Defined in:
- lib/framework-generate/script.rb
Instance Attribute Summary collapse
-
#inputs ⇒ Object
Returns the value of attribute inputs.
-
#name ⇒ Object
Returns the value of attribute name.
-
#script ⇒ Object
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize(name = nil, script = nil, inputs = nil) {|_self| ... } ⇒ Script
constructor
A new instance of Script.
- #to_s ⇒ Object
Constructor Details
#initialize(name = nil, script = nil, inputs = nil) {|_self| ... } ⇒ Script
Returns a new instance of Script.
5 6 7 8 9 10 11 |
# File 'lib/framework-generate/script.rb', line 5 def initialize(name = nil, script = nil, inputs = nil) @name = name @script = script @inputs = inputs yield(self) if block_given? end |
Instance Attribute Details
#inputs ⇒ Object
Returns the value of attribute inputs.
3 4 5 |
# File 'lib/framework-generate/script.rb', line 3 def inputs @inputs end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/framework-generate/script.rb', line 3 def name @name end |
#script ⇒ Object
Returns the value of attribute script.
3 4 5 |
# File 'lib/framework-generate/script.rb', line 3 def script @script end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/framework-generate/script.rb', line 13 def to_s "Script<#{name}, #{script}, #{inputs}>" end |