new 2

class.new(args, ...) รข obj
Instance Public methods

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.

doc_ruby_on_rails
2015-04-01 07:02:56
Comments
Leave a Comment

Please login to continue.