Ruby has two forms of multiple-selection constructs, both of which are called case expressions and both of which yield the value of the last expression evaluated.
what both refers to?
Ruby has two forms of multiple-selection constructs, both of which are called case expressions and both of which yield the value of the last expression evaluated.
what both refers to?
Consider the following sentences:
Raj has two balls, both of which are red.
Raj has two balls of equal size, both of which are red in colour.
There are two balls about which the sentence after comma describes.
So "both" in your sentence describes about the 'two forms'.
Here 'both' is used as a pronoun which refers two things together. In this case the two forms. And both always mentions two things and not multiple things or so.
Both is an indefinite pronoun replacing in Ruby’s case the noun: “form of multiple-selection constructs” and in Raj’s case the noun: “ball”. Both is the dual (plural) form of an indefinite pronoun.