Module VimMate::NiceSingleton
In: lib/vimmatelib/nice_singleton.rb

A nicer singleton implementation. When a class mixes this module, it becomes a singleton and you don‘t have to use ‘instance’ to access the singleton‘s class method. For example:

  class Hello
    include VimMate::NiceSingleton

    def hello
      "hello"
    end
  end

  Hello.hello # => "hello"

Methods

included  

Public Class methods

[Validate]