Sha256: 9fb4402f2461a0d6109d32c53b3efcd89619114aef968a9e550dbea181a21f58

Contents?: true

Size: 206 Bytes

Versions: 1

Compression:

Stored size: 206 Bytes

Contents

require 'vote_init/version'

# mokey patches Object class to check if init is defined
class Object
  def self.method_added(method_name)
    alias_method :initialize, :init if method_name == :init
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vote_init-0.1.0 lib/vote_init.rb