1
0
Fork 0
mirror of synced 2024-06-01 06:51:09 -04:00
ultimate-vim/sources_non_forked/snipmate-snippets/ruby/module.snippet

15 lines
234 B
Plaintext
Raw Normal View History

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