Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Posts about Ruby

Ruby exception

May 12, 2021 08:00 0 Comment Ruby

Ruby exception, Ruby exception, Grammar, Instance, Use the retry statement, Grammar, Instance, Use the raise statement, Grammar, Instance, Use the ensure statement, Grammar, Instance, Use the else statement, Grammar, Instance, Catch and Throw, Grammar, Instance, Class Exception, Ruby, exception, Exceptions and execution are always linked., If you open a file that doesn't exist and don't handle it properly, your program is cons

Ruby Dir classes and methods

May 12, 2021 08:00 0 Comment Ruby

Ruby Dir classes and methods, Ruby Dir classes and methods, Class method, The instance method, Ruby, Dir classes and methods, Dir is, a directory stream that represents the name of the file used to give the directory in the operating system., Th

Ruby File classes and methods

May 12, 2021 08:00 0 Comment Ruby

Ruby File classes and methods, Ruby File classes and methods, Class method, The instance method, Ruby, File classes and methods, File, represents a, stdio, object connected to a normal file., open returns an instance of the class for a normal file

The input and output of the Ruby file

May 12, 2021 08:00 0 Comment Ruby

The input and output of the Ruby file, The input and output of the Ruby file, Puts statement, Instance, Gets statement, Instance, Putc statement, Instance, The print statement, Instance, Open and close files, File.new method, File.open method, Read and write files, The sysread method, syswrite method, each_byte method, IO.readlines method, IO.foreach method, Rename and delete files, File mode and ownership, File query, The directory in Ruby, Browse the catalog, Create a directory, Delete the directory, Create a file and a temporary directory, Built-in functions, The input, and output of the Ruby file, Ruby provides a complete set of I/O-related methods, implemented in the Kernel module., All I/O methods are de

Ruby iterator

May 12, 2021 08:00 0 Comment Ruby

Ruby iterator, Ruby iterator, Ruby each iterator, Grammar, Instance, Ruby collect iterator, Grammar, Instance, Ruby, iterator, An iterator is, a method supported, by a collection. A, n object that stores a set of data members is called a collection., In Ruby, a

Ruby CGI method

May 12, 2021 09:00 0 Comment Ruby

Ruby CGI method, Ruby CGI method, CGI instantiation method, HTML build method, CGI object properties, Ruby CGI method, The following is a list of methods for CGI classes:, Serial number, Method description, 1, CGI::new([ level="query"]), Create a CGI o

Ruby CGI Cookies

May 12, 2021 09:00 0 Comment Ruby

Ruby CGI Cookies, Ruby CGI Cookies, How do cookies work?, Ruby handles cookies, Ruby CGI Cookies, The HTTP protocol is a stateless protocol., But for a business website, it needs to keep session information between pages., If the

Ruby CGI Sessions

May 12, 2021 09:00 0 Comment Ruby

Ruby CGI Sessions, Ruby CGI Sessions, CGI:: Session class, Ruby CGI Sessions, CGI:: Session can save a persistent session state for the user and the CGI environment, and the session needs to be closed after us

Ruby Sends Mail - SMTP

May 12, 2021 09:00 0 Comment Ruby

Ruby Sends Mail - SMATP, Ruby Sends Mail - SMATP, Use Ruby to send HTML messages, Send a message with attachments, Ruby Sends Mail - SMATP, Simple Mail Transfer Protocol, a simple messaging protocol, is a set of rules used to deliver messages from the source addres

Ruby Socket programming

May 12, 2021 09:00 0 Comment Ruby

Ruby Socket programming, Ruby Socket programming, What is Sockets, Simple client, Simple service, Multi-client TCP service, Tiny web browser, Ruby Socket programming, Ruby provides two levels of access to the network, at the bottom you have access to the operating system, which allows you to

Ruby XML, XSLT and XPath tutorials

May 12, 2021 09:00 0 Comment Ruby

Ruby XML, XSLT and XPath tutorials, Ruby XML, XSLT and XPath tutorials, What is XML?, XML parser structure and API, Resolve and create XML in Ruby, DOM parser, SAX parser, XPath and Ruby, XSLT and Ruby, More information, Ruby XML, XSLT and XPath tutorials, What is XML?, XML refers to the extensible markup language (eXtensible Markup Language)., Extensable markup langua

Ruby Web Services App - SOAP4R

May 12, 2021 09:00 0 Comment Ruby

Ruby Web Services App - SOAP4R, Ruby Web Services App - SOAP4R, What is SOAP?, SOAP4R installation, SOAP4R service, SOAP4R client, Ruby Web Services App - SOAP4R, What is SOAP?, Simple Object Access Protocol (SOAP, written entirely as Simple Object Access Protocol) is a protocol s

Ruby multithreaded

May 12, 2021 09:00 0 Comment Ruby

Ruby multithreaded, Ruby multithreaded, Create a Ruby thread, Thread lifecycle, The thread state, Threads and exceptions, Thread synchronization control, The thread variable, Thread priority, Threads are mutually exclusive, Deadlock, Thread class method, Thread instantiation method, Ruby multithreaded, Each program that is running on the system is a process., Each process contains one or more threads., A thread is a single sequent

Ruby JSON

May 12, 2021 09:00 0 Comment Ruby

Ruby JSON, Ruby JSON, Environment configuration, Use Ruby to parse JSON, Ruby JSON, In this section, we'll show you how to encode and decode JSON objects using the Ruby language., Environment configuration, Before we can en

Ruby RubyGems

May 12, 2021 09:00 0 Comment Ruby

Ruby RubyGems, Ruby RubyGems, Gem, The build of the gem package, Modify the domestic source, Ruby RubyGems, RubyGems is a package manager for Ruby that provides a standard format for distributing Ruby programs and libraries, as well as a tool