Class: Exam::Task
- Inherits:
-
Object
- Object
- Exam::Task
- Defined in:
- lib/exam/task.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command) ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(command) ⇒ Task
Returns a new instance of Task.
5 6 7 |
# File 'lib/exam/task.rb', line 5 def initialize(command) @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
3 4 5 |
# File 'lib/exam/task.rb', line 3 def command @command end |