Class: Shellfish::Problem

Inherits:
Object
  • Object
show all
Defined in:
lib/shellfish/problem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/shellfish/problem.rb', line 3

def description
  @description
end

#expected_resultObject 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

#subjectObject

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?

Returns:

  • (Boolean)


11
12
13
# File 'lib/shellfish/problem.rb', line 11

def description?
  !(@description.nil?)
end

#subject?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/shellfish/problem.rb', line 7

def subject?
  !(@subject.nil?)
end