tamouse m. wrote in post #1119460:
> On Aug 23, 2013, at 9:57 AM, Love U Ruby <lists / ruby-forum.com> wrote:


Ohh! My bad... thanks for the catch! :)


> (from ruby core)
> ------------------------------------------------------------------------------
>   class.new(args, ...)    ->  obj
>
> ------------------------------------------------------------------------------
>
> Calls allocate to create a new object of class's class, then
> invokes that object's initialize method, passing it args. This
> is the method that ends up getting called whenever an object is
> constructed
> using .new.
>
>
> Since initialize is an instance method, you can see the parameter list
> as:

> Foo.instance_method(:initialize).parameters #=> [[:req, :a], [:req, :b]

-- 
Posted via http://www.ruby-forum.com/.