Sha256: c11f1ca103e3408ba25b62bbbbc592e43742a45df1846b9a0865e581a5a1c6a0

Contents?: true

Size: 201 Bytes

Versions: 1

Compression:

Stored size: 201 Bytes

Contents

#
# of course it works for classes and modules too 
#
  require 'pervasives'

  class C
    def self.new() raise end
  
    def inspect() 42.inspect end
  end

  c = C.__pervasive__ :new

  p c #=> 42

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pervasives-1.1.0 samples/d.rb