Aside from sharing the name, I don't think those two concepts have anything to do with one another.
But if you're looking for something in bash that behaves like this Ruby example from the Wikipedia article you linked:
(1..10).each do |x|
puts x if (x == 4 .. x == 6)
end
A version of that in bash is:
#!/bin/bash
do_print="false"
for ((i = 1; i <= 10; ++i)); do
if [[ ${i} -eq 4 ]]; then
do_print="true"
fi
if [[ "${do_print}" == "true" ]]; then
echo "${i}"
fi
if [[ ${i} -eq 6 ]]; then
do_print="false"
fi
done
The `do_print` variable "flips" on when `i=4` and "flops" off when `i=6`. Bash doesn't have the syntactic sugar to do that the way Ruby does.