1
0
Fork 0
mirror of synced 2024-12-25 00:03:20 -05:00
ultimate-vim/bundle/snipmate-snippets/ruby/module.snippet
2014-05-09 21:28:39 +02:00

14 lines
234 B
Text

module ${1:`Snippet_RubyClassNameFromFilename()`}
module ClassMethods
${2}
end
module InstanceMethods
end
def self.included(receiver)
receiver.extend ClassMethods
receiver.send :include, InstanceMethods
end
end