Sha256: 0ff37b10af37445b50883adda6810b48437d99da105c4afa65ae8cffceb2758d

Contents?: true

Size: 480 Bytes

Versions: 4

Compression:

Stored size: 480 Bytes

Contents

## Instantiator

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

The initial requirement for this has come from my [Introspection](https://github.com/floehopper/introspection) project.

### Usage

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
instantiator-0.0.6 README.md
instantiator-0.0.5 README.md
instantiator-0.0.4 README.md
instantiator-0.0.3 README.md