As Jan said, this doesn’t really fit the language. Methods have always
belonged to classes or modules, and now you request them to belong to
other methods instead. Lambdas will probably do the job just fine.
Also, it would break old code - for example currently Camping relies
on the way defining a method insde another method works.
– Matma R.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.