ƒz[ƒ€ :‚»‚Μ‚Q :πŒ”»’f :

ycase•Άz

‘O‚Φ ŽŸ‚Φ



case ”δŠr‚΅‚½‚’ƒIƒuƒWƒFƒNƒg
when ’l‚P then
@•Ά‚P
when ’l‚Q then
@•Ά‚Q
when ’l‚R then
@•Ά‚R
else
@•Ά‚S
end

¦then‚͏ȗͺ‰Β”\


i—αjcase.rb
-------------------------------------
#!/usr/local/bin/ruby

tags = ["A", "IMG", "PRE"]

tags.each{|tagname|
@case tagname
@when "P","A","I","B","BLOCKQUOTE"
@@print tagname, " has child.\n"
@when "IMG","BR"
@@print tagname, " has no child.\n"
@else
@@print tagname, " cannot be used.\n"
@end
}
-------------------------------------

πŒ”»’f ‚Ι–ί‚ι