3 ms·
While browsing a Ruby codebase’s config.rb recently, I saw several proc commands followed by bracketed subcommands and wondered if it was for some reason Tcl em
by gglitch 8y ago
While browsing a Ruby codebase’s config.rb recently, I saw several proc commands followed by bracketed subcommands and wondered if it was for some reason Tcl embedded into a Ruby script. Could that be an example of what you’re describing here? What’s the use case for that?
- dragonwriter 8y ago> While browsing a Ruby codebase’s config.rb recently, I saw several proc commands followed by bracketed subcommands and wondered if it was for some reason Tcl embedded into a Ruby script The proc method in Ruby takes a Ruby block, which is delineated either by brackets or do...end. it has nothing to do with embedding Tcl.