views:

35

answers:

2

Hello,

I would like to ask if somebody has some user script to copy all implementation methods definitions to the clipboard that can be pasted to the header definitions.

+2  A: 

Create a new new userscript with the input set as Entire Document and the output set as Place on Clipboard. Then past the code below in...

#!/usr/bin/env ruby

text = $stdin.read

for method in text.scan(/\s*([+-]\s*\([^\)]+\)[^\{]+)/)
    puts method[0].strip + ";"
end
probablyCorey
A: 

Hello, this is absolutely what i was looking for, Thanks soooooo much...

Jan