1
0
Fork 0
mirror of synced 2024-12-26 16:43:20 -05:00
ultimate-vim/sources_non_forked/snipmate-snippets/ruby/module.snippet

15 lines
234 B
Text
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