Class: Exam
- Inherits:
-
Object
- Object
- Exam
- Defined in:
- lib/exam.rb,
lib/exam/task.rb,
lib/exam/suite.rb,
lib/exam/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Attribute Summary collapse
-
#suites ⇒ Object
readonly
Returns the value of attribute suites.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Exam
constructor
A new instance of Exam.
- #timing? ⇒ Boolean
Constructor Details
#initialize(&block) ⇒ Exam
Returns a new instance of Exam.
8 9 10 11 12 |
# File 'lib/exam.rb', line 8 def initialize(&block) @suites = [] @timing = false instance_eval(&block) end |
Instance Attribute Details
#suites ⇒ Object (readonly)
Returns the value of attribute suites.
6 7 8 |
# File 'lib/exam.rb', line 6 def suites @suites end |
Instance Method Details
#timing? ⇒ Boolean
14 15 16 |
# File 'lib/exam.rb', line 14 def timing? @timing end |