View Ruby Call Vs Send UK
View Ruby Call Vs Send UK. I love ruby's syntax for method calls. Ruby, specially as being a dynamic language, you can create methods on the fly, add instance variables, define constants and invoke existing methods dynamically.
Other languages sometimes refer to this as a function.
Unlike send, public_send calls public methods only. Det er mange bruksområder for anropsmetoden med object. In ruby, the concept of object orientation takes its roots from smalltalk. In ruby programming language there is well know feature called lambda (and proc), that acts as an executable chunk of code that can be passed and may be executed outside of its definition via #call.
Posting Komentar untuk "View Ruby Call Vs Send UK"