Class: Shellfish::Problem
- Inherits:
-
Object
- Object
- Shellfish::Problem
- Defined in:
- lib/shellfish/problem.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#expected_result ⇒ Object
(also: #expected)
Returns the value of attribute expected_result.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
- #description? ⇒ Boolean (also: #desc?)
- #subject? ⇒ Boolean
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/shellfish/problem.rb', line 3 def description @description end |
#expected_result ⇒ Object Also known as: expected
Returns the value of attribute expected_result.
3 4 5 |
# File 'lib/shellfish/problem.rb', line 3 def expected_result @expected_result end |
#subject ⇒ Object
Returns the value of attribute subject.
3 4 5 |
# File 'lib/shellfish/problem.rb', line 3 def subject @subject end |
Instance Method Details
#description? ⇒ Boolean Also known as: desc?
11 12 13 |
# File 'lib/shellfish/problem.rb', line 11 def description? !(@description.nil?) end |
#subject? ⇒ Boolean
7 8 9 |
# File 'lib/shellfish/problem.rb', line 7 def subject? !(@subject.nil?) end |