Sha256: 976e242e0527c0454b0974be5bb9ae4b345dd2d14a80a0c575abc8ad3b9743f2

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

## Instantiator

I want to be able to instantiate an arbitrary Ruby class without knowing anything about the constructor.

### Usage

    class ArbitraryClass
      def initialize(arg1, arg2, *other_args)
        # stuff
      end
    end

    require "instantiator"
    
    instance = ArbitraryClass.instantiate
    
    p instance.class # => ArbitraryClass

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
instantiator-0.0.2 README.md
instantiator-0.0.1 README.md