Sha256: e46b3ecf7b131dedbe2f6ceaa4ebfcec84da8fb1d2d93957409c750e6a9ae6f2
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
require "pivorak/version" module Pivorak class Mark attr_reader :point def initialize(point) @point = point end 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pivorak-0.1.3 | lib/pivorak.rb |
pivorak-0.1.2 | lib/pivorak.rb |