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
| # Installation | |
| # Go to Tools > Developer > New Plugin, copy this code, save it. | |
| # Then open the key bindings file and add something like | |
| # { "keys": ["super+k", "super+c"], "command": "copy_ruby_class_window" } | |
| # Usage | |
| # With any ruby file open call this command to copy the class name (including all the nested modules) to clipboard. | |
| # Shoutout to https://github.com/astrauka/TestRSpec plugin for the parsing/re logic | |
| import sublime |
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
| ### The Setup | |
| Kernel.define_method(:"`") do |val| | |
| val | |
| end | |
| def const(val) | |
| val | |
| end |
OlderNewer