Oct 24, 2022How to create a closure in RubyHow to create a function which has access to variables defined outside its block scopefunctional-programmingprogramming-fundamentalsrubyquestion