Basic Syntax of common Ruby Libraries

Source: Internet
Author: User
Tags ruby on rails learn ruby on rails

Ruby is a fully object-oriented interpreted scripting language. Its unique nature can help us easily and conveniently compile code. Next let's take a look at some usage of common Ruby libraries.

  • Ruby regular expressions have many similarities with Perl
  • Ruby clipboard access tips
  • Quickly learn Ruby on Rails manual installation skills
  • Special Ruby Variables
  • Ruby naming rules

Basic Ruby library syntax
1. Control Structure
2. Exception Handling
Category 3
4. Method
Module 5

A Ruby Common Library File System
1 internal library: IO, File, Dir, FileTest, FileUtils

2. Operations on common Ruby Library Documents,
1 class library translation (additional library: REXML/Document)
2 HTML parsing: Hpricot Library

Three Ruby common library text processing functions
1 String type
2 Regexp class

Four Ruby common library network programming:
1 socket
2 Net: HTTP encapsulates the application layer protocol HTTP
3. OpenURI re-encapsulate Net: HTTP. You can open an http/ftp URI like opening a local disk file.

Five Ruby common library database programming:
1 Ruby DBI Introduction

6. Interaction between common Ruby libraries and Windows operating systems:
1 WIN 32API call example dl/win32
2 WIN32OLE call example win32ole
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.