Class: IttfPoints::CLI
- Inherits:
-
Thor
- Object
- Thor
- IttfPoints::CLI
- Defined in:
- lib/ittf_points/cli.rb
Instance Method Summary collapse
Instance Method Details
#player(points, weight = :W2) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ittf_points/cli.rb', line 8 def player(points, weight = :W2) player = Player.new(rating_points: points, weight: weight) if [:win] player.win([:win]) end if [:lose] player.lose([:lose]) end puts "New Added Rating Points: #{player.}" puts "New Rating Points: #{player.}" end |