/usr/share/doc/ruby-instantiator/README.md is in ruby-instantiator 0.0.6+git9cbbe70-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## 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
|