ruby-define-method

Like Textmate, shortcut to declare a ruby method with shift+enter

alexchee

4,459

6

0.2.2

MIT

GitHub

ruby-define-method package

Adds ruby-define-method:new_instance_method command converts a line of text into a method name with shift+enter like in Textmate. Please note: I'm still learning my way around Atom, improvements are welcomed!

Ruby Define Method

To change the keybinding:

'.editor[data-grammar~=ruby]':
  'shift-enter': 'ruby-define-method:new_instance_method'

TODO: