1.
Interactive Ruby—is the tool of choice
for executing Ruby interactively. irb is a Ruby shell, complete with
command-line history, line-editing capabilities, and job control. Exit an irb
session by typing exit or by using the end-of-file character on your operating
system (normally Ctrl+D or Ctrl+Z).
2.
On Unix systems, you can use the
“shebang” notation as the first line of the program file: #!/usr/bin/ruby
3.
A shebang (also called a hashbang) is
the character sequence consisting of the characters number sign and exclamation
point (#!), when it occurs as the first two characters on the first line of a
text file. In this case, the program loader in Unix-like operating systems
parses the rest of the first line as an interpreter directive and invokes the
program specified after the character sequence with any command line options
specified as parameters. The name of the file being executed is passed as the
final argument.
4.
If a source file is documented using
RDoc, its documentation can be extracted and converted into HTML and ri
formats.
5.
To find the documentation for a class,
type ri
ClassName
. To get a list of classes with ri documentation, type ri
with no arguments.
6.
Once you find a set of options you
like, you can set them into the RI environment variable. Using our shell, this
would be done using the following:
$ export RI="--format ansi --width 70"
分享到:
相关推荐
英文清晰版 Getting Started with LLVM Core Libraries ,学习LLVM必不可少的资料 A practical guide to understanding LLVM with the help of source code references and snippets, insights on how compiler ...
Getting started with Spring Framework (4th Edition) is a hands-on guide to begin developing applications using Spring Framework 5. The examples (consisting of 88 sample projects) that accompany this ...
Getting Started with Processing is not a programming textbook; as the title suggests, it will get you started. It’s for teenagers, hobbyists, grandparents, and everyone in between. This book is also...
Map Guide Getting Started
ABAQUS的帮助文档Getting started with ABAQUS (基于关键词版),对理解ABAQUS的关键词很有好处。
Getting started with Arduino is a snap. To use the introductory examples in this guide, all you need an Arduino Uno or earlier model, along with USB A-B cable and an LED. The easy-to-use Arduino ...
getting started with sql getting started with sql getting started with sql
GSDML Getting Started Made Easy
Introducing Erlang Getting Started in Functional Programming(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Getting Started with AutoMod (2nd Edition)
"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, Tropicana, and Taco Bell are all using Grails. Are you ready to get started ...
Getting Started with Qt (英文) Qt入门教程,介绍Qt安装(linux/windows),编程,tslib库构建,在Eclipse中使用Qt 1 Introduction 2 Installing Qt SDK on X86 Linux 3 Installing Qt Everywhere on a Linux host ...
MRTK.HoloLens2.Unity.Tutorials.Assets.GettingStarted.2.3.0.2
Module 1: Getting Started With Altium Designer 1.1 Introduction to Altium Designer...................................................... 1-1 1.1.1 The Altium Designer Integration Platform..............
Tornado Getting Started Guide 2.2.pdf 你知道的
Getting Started with Kubernetes,mobi 版本,Kubernetes is arguably the most important container management technology in the world. This course will teach you the theory and practical skills required ...
Getting Started With JUCE 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或...
Getting started with memcached
Windows Home Server Getting Started Guide