A ruby block is just a block of code that can be passed as a callback.
They're delimited by either
do |arg0,arg1| ... end
or{ |arg0,arg1,arg2| ... }
A ruby block is just a block of code that can be passed as a callback.
They're delimited by either
do |arg0,arg1| ... end
or{ |arg0,arg1,arg2| ... }
© 2022 • Contents under CC-BY-NC