r = 3..6or
r = Range.new(3, 6)defines a Range object r that contains the values [3, 4, 5, 6]. This type of range is called an inclusive range.
r = 4..8or
s = Range.new(4, 8, true) # (true means exclusive)defines an object that includes the values [4, 5, 6, 7].
s = :dog
s = %q/This is a "test"// is the delimiter, which is useful because the string contains embedded double quotes, so double quotes are not convenient as delimiters.
val = 357 x = %Q(This\tis\ta\"test". Value=#{val}\n) print x( and ) are the delimiters. The output is
This is a "test". Value=357
Primary Table | Secondary Table |
---|---|
advisors | students |
airline_flights | passengers |
doctors | patients |
auto_models | parts |
instagram_users | photos |
mothers | children |
cookbooks | receipes |