The problem is that there are not enough keywords end, and I discovered $end(a token representing the end of the file) before he can find what he was looking for - another one end. (The parser token for the keyword endis either "keyword_end" or "Kend", depending on the version of ruby.)
if end.
, elsif else if. if end ( if end).
if x == 1
"1"
elsif x == 2
"2"
else
"else"
end
case, , (x ):
case x
when 1 then "1"
when 2 then "2"
else "else"
end
else if (, if if), , , if. , .
if x == 1
"1"
else
if x == 2
"2"
else
"else"
end
end
.
: if, expr if cond, end , , , .
, if case Ruby,
@term = Term.find(params[:id])
@title = case @term.id
when 1 then "Fall"
when 2 then "Winter"
when 3 then "Spring"
when 4 then "Summer"
else "Invalid Term"
end
if/elsif/end , case @term.id. - Hash - , ; -)
user166390