0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Instantiate an arbitrary Ruby class
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Instantiator Build Status Gem Version

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 project.

Usage

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

require "instantiator"

instance = ArbitraryClass.instantiate

p instance.class # => ArbitraryClass