4 5 6 7
# File 'lib/casegen.rb', line 4 def outdent a = $1 if match(/\A(\s*)(.*\n)(?:\1.*\n|\n)*\z/) gsub(/^#{a}/, '') end
7 8 9
# File 'lib/agents/sets.rb', line 7 def to_u self.gsub(/ /, '_') end