Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Testicek
- def initialize(code)
- @code = code
- @sold = 0
- unless @code =~ /(^P|Q|R|S|T)(A|E|I|O|U)[001-450$]/
- raise Exception.new("#{@code}: Not enough items in store")
- end
- end
- end
- t = Testicek.new("fsdfdsf")
Add Comment
Please, Sign In to add comment