1
0
Fork 0
mirror of synced 2024-11-14 13:08:59 -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