vimrc/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