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 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 p5.js中文版》是一本针对初学者的p5.js教程,由Lauren McCarthy、Casey Reas和Ben Fry共同创作。p5.js是一个基于JavaScript的创意编程库,它的目标是使编程变得更为易用和包容,特别适合艺术...
Written by electronics guru Simon Monk, Programming FPGAs: Getting Started with Verilog features clear explanations, easy-to-follow examples, and downloadable sample programs. You’ll get start-to-...
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...
### RTI DDS Getting Started #### 一、RTI Connext DDS 概览 **RTI Connext DDS** 是由美国 **Real-Time Innovations (RTI)** 公司开发的一款高性能的分布式实时通信中间件产品。它基于 **Data Distribution ...
标题《ABAQUS 帮助文档—Getting started with ABAQUS.pdf》表明本文档是ABAQUS软件的入门级帮助指南,主要面向那些希望开始使用ABAQUS进行有限元分析的用户。文档的副标题“Keywords Edition”强调本指南侧重于...
《Getting Started with Version 2.0.x》这份文档旨在引导用户如何在本地系统上安装并运行Map Guide开源地图服务。Map Guide是一个功能丰富的地理信息系统(GIS)平台,为用户提供地图数据管理、展示以及地理空间...
PExprt入门教材:Getting Started_A Transformer Design Example是Ansoft官方推出的一款教学指南,旨在帮助初学者通过一个变压器设计的实例来快速掌握PExprt的基本操作和仿真流程。 教材的开篇就提到了关于文档信息...
根据给定文件的信息,我们可以提炼出关于"Tornado Getting Started Guide 2.2"的重要知识点。 ### Tornado Getting Started Guide 2.2 #### 概述 Tornado Getting Started Guide 2.2是一份由Wind River Systems, ...
GSDML Getting Started Made Easy
《Simscape™ Multibody™ Getting Started Guide》是针对Simscape Multibody软件的入门指南,由MathWorks公司发布。该文档提供了软件的使用和操作方法,帮助用户快速上手该软件。Simscape Multibody是MathWorks公司...
Introducing Erlang Getting Started in Functional Programming(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
本书《Getting Started with LLVM Core Libraries》旨在帮助读者深入了解LLVM的核心库,并教授如何利用这些库来构建复杂的编程工具。 #### 二、LLVM概述 LLVM项目由一系列相互独立但紧密集成的组件构成,包括但不...
Windows Home Server Getting Started Guide
MRTK.HoloLens2.Unity.Tutorials.Assets.GettingStarted.2.3.0.2
根据给定的文档标题“Getting started with ArcGIS”以及描述中的介绍,“ArcGIS的入门文档虽然全是英文,但是每一步的操作都非常基础易懂”,这表明该文档非常适合初学者学习。 #### 二、ArcGIS的核心功能与应用...
**蓝牙低功耗技术简介** 本文档旨在引导初学者了解并开始使用蓝牙低功耗(Bluetooth Low Energy,BLE),也称为Bluetooth Smart。该技术是蓝牙技术联盟(SIG)推出的一种针对物联网(IoT)设备而设计的无线通信标准...
《Getting Started with Google Guava》是Bill Bejeck所著,旨在帮助Java开发者通过Google Guava库编写更优质、更高效的代码。Bill Bejeck是一位拥有10年经验的资深软件工程师,专注于各种项目的开发工作。在写作...