インストール

# 対話形式のRuby
sudo apt-get install irb

# 電脳Ruby
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/dcl-c/sarge//dcl-c_5.3.2-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-narray/sarge/ruby-narray_0.5.8-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/narray-dev/sarge/ruby-narray-dev_0.5.8-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-dcl/sarge/ruby-dcl_1.5.2-2_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-netcdf/sarge/ruby-netcdf_0.6.2-2_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-mutibitnums/sarge/ruby-multibitnums_0.1.2-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-fftw3/sarge/ruby-fftw3_0.2-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-vtk/sarge/ruby-vtk_0.2.0-2_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-narray-miss/sarge/ruby-narray-miss_1.1.2-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/numru-misc/sarge/numru-misc_0.0.6-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/numru-units//sarge/numru-units_1.5-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-gpv/sarge/ruby-gpv_0.3.0-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/gphys/sarge/gphys_0.5.4-1_i386.deb
wget -c http://www.gfd-dennou.org/arch/ruby/products/debian/gave/sarge/gave_1.2.2-1_i386.deb

wget http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-narray/sarge/ruby-narray_0.5.8-1_i386.deb
wget http://www.gfd-dennou.org/arch/ruby/products/debian/dcl-c/sarge//dcl-c_5.3.2-1_i386.deb
wget http://www.gfd-dennou.org/arch/ruby/products/debian/ruby-dcl/sarge/ruby-dcl_1.5.2-2_i386.deb
sudo dpkg -i ruby-narray_0.5.8-1_i386.deb dcl-c_5.3.2-1_i386.deb ruby-dcl_1.5.2-2_i386.deb

チュートリアル

電脳Ruby チュートリアル

いろいろ

パイプで受け取って処理
cat t | ruby -e '$stdin.each do |i|; p i; end'