Sha256: c3c9b8d6cfe0f515202cca1785d86f9d531ec428236d45f3a77f28f737bc1083

Contents?: true

Size: 325 Bytes

Versions: 9

Compression:

Stored size: 325 Bytes

Contents

#!/usr/bin/env baba
# -*- coding: utf-8 -*-

res = かず助に行きたい人の出欠取ってください
puts res # => "6人です"
loop do
  num = res.to_i
  if num > 0
    puts では予約してください("#{num}人")
    exit
  else
    res = 残念・・その次の週はどうですか?
    puts res
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
babascript-0.3.1 samples/sample.bb
babascript-0.3.0 samples/sample.bb
babascript-0.2.6 samples/sample.bb
babascript-0.2.5 samples/sample.bb
babascript-0.2.4 samples/sample.bb
babascript-0.2.3 samples/sample.bb
babascript-0.2.2 samples/sample.bb
babascript-0.2.1 samples/sample.bb
babascript-0.2.0 samples/sample.bb