class Pivorak::Mark
Attributes
point[R]
Public Class Methods
new(point)
click to toggle source
# File lib/pivorak.rb, line 7 def initialize(point) @point = point end
Public Instance Methods
feedback()
click to toggle source
# File lib/pivorak.rb, line 11 def feedback case point when -1 then 'Pffffff... where is your homework?' when 0 then 'Not nice. You should try better next time' when 1 then 'Good job!' else 'Wowow... only -1, 0 or 1 allowed' end end