TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 233

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 233', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Ruby in a Nutshell By Yukihiro Matsumoto Chapter 3. Built-in Library Reference Built-in Library Ruby s built-in library provides you with a rich set of classes that form the foundation for your Ruby programs. There are classes for manipulating text String operating system services and abstractions IO File Process etc. numbers Integer Fixnum etc. and so on. Using these basic building blocks you can build powerful Ruby programs. But wait in the next chapter I lay out the Standard Library which extends Ruby s flexibility. Objects Ruby couldn t lay claim to being an object-oriented scripting language without providing fundamental tools for OOP. This basic support is provided through the Obj ect class. Object Superclass of all classes Obj ect is the parent class of all other classes. When a method is defined at the top level it becomes a private method of this class making it executable by all classes as if it were a function in other languages. Included Modules Kernel Private Instance Methods initialize Initializes an object. Any block and arguments associated with the new method are passed directly to initialize. It s assumed that this method will be redefined by subclasses for object initialization. Kernel Module containing built-in functions Kernel is the module in which Ruby s built-in functions are defined as module functions. Since it s included in Obj ect Kernel is indirectly included in all classes. Private Instance Methods Function-like methods are private methods of Kernel. Although the following methods fall into the same category they are more similar to standard private instance methods than function-like methods. remove_instance_variable name Removes instance variable specified by name. Instance Methods o other Determines if the values are equal. o other Comparison operator used by case statement compares equality or confirms class membership . o other Checks for pattern matches. The definition in Kernel calls . Returns the class

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.