Created
February 11, 2016 11:32
-
-
Save radex/b425c73afde84d88e4ca to your computer and use it in GitHub Desktop.
Extract function declarations from your Swift project. Just open up `irb` from your project run and paste this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IO.write 'funcs.txt', (Dir["**/*.swift"] - Dir["{Libraries,Pods}/**/*.swift"]).flat_map { |f| IO.read(f).lines.select { |l| l.include? 'func ' }.map { |l| l.strip } }.join("\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment