You are really great. I am very much thankful to you..You always helped
me to clear my doubts..although some times got angry on me like
others..But still I love this Ruby community members as they are really
helpful..
Help me to enjoy this awesome Ruby language..
···
req #required argument
opt #optional argument
rest #rest of arguments as array
keyreq #reguired key argument (2.1+)
key #key argument
keyrest #rest of key arguments as Hash
block #block parameter
remember: ruby can not know about the names of the parameters for
c-compiled fuctions
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:
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: