ruby 应用
1:FXRuby is a library for developing powerful and sophisticated cross-platform graphical user interfaces (GUIs) for your Ruby applications. It’s based on the FOX Toolkit, a popular open source C++ library developed by Jeroen van der Zijp. What that means for you as an application developer is that you’re able to write code in the Ruby programming language that you already know and love, while at the same time taking advantage of the performance and functionality of a featureful, highly optimized C++ toolkit. Projects Using FXRuby Projects using FXRuby include: BeERP is a commercial ERP built entirely with the FXRuby library. Discretizer is an interactive mesh creation tool. It can be used to create geometry and meshes for three dimensional flow simulations (CFD). foxGUIb is an interactive gui builder and codegenerator for FXRuby. This tool makes it easy to quickly build complex and good looking graphical user interfaces for Ruby. FXRI is a FXRuby Interface to RI that supports search-on-typing. FXRI is a small little program that tries to provide the desired information as fast as possible. fxtwitter is a simple Twitter client written in Ruby. FreeRIDE is an IDE for the Ruby programming language. http://opensource.csdn.net/project/lang/26?show=hots&p=5 MasterView™ - Rails-optimized (x)html friendly template engine http://masterview.org/ RubyScript2Exe http://www.erikveen.dds.nl/rubyscript2exe/index.html RUBY GUI框架:http://opensource.csdn.net/project/lang/26?tag=178
可可鱼:http://www.kekeyu.com/ruby/open_2665.html 一个ERP: http://donmanolo2.sourceforge.net/
GUI: http://ruby-gnome2.sourceforge.jp/hiki.cgi
鞋:http://github.com/why/shoes/tree/master Hamster介绍: URL: http://rubyforge.org/frs/download.php/11419/hamster_beta_build_060629.rar
来源:可可鱼开源网 赞助:www.
相关文档:
Ruport是一个免费的Ruby报表工具,它可以令到制作报表软件变得简单一些。Ruport支持从文件或者数据库获得数据,提供工具操作数据。额外地,Ruport支持高扩展的格式化软件,目前能够支援HTML、PDF、CSV和文本输出。
Ruport可能是Ruby目前唯一的报表工具,目前在持续开发中,更多的新特性正在添加。
安装方法:
gem instal ......
下文转自:
http://www.cnblogs.com/watir/archive/2009/04/25/1443440.html
ruby文件从命令行中接收参数
在命令行方法执行ruby文件时,需要从命令行中传入参数,可以使用全局变量:ARGV
如有ruby 文件test.rb,内容如下:
1 def hello(a)
2 puts a
3 end
4
5 ......
Ruport目前自带支持PDF,HTML,CSV,TXT格式输出,如果想打印.xml,.bat报表怎么办?
本例将以XML格式为例,实现Ruport::Formatter的另一种自定义应用。
Ruport的应用参考: Ruby Ruport实践—简单报表系统
注:其他格式的报表只需要修改renders对应的内容(如希望保存为.bat格式,将renders :xml改为renders :bat), ......
1. 进制的快捷转换
"100".to_i(2) , 将100作为二进制输出十进制数,
结果 : 4
"100".to_i(9), 九进制,
结果: 81
"100".to_i(16), 十六机制,
结果: 256
比较帅,字符串转换在vc编程里面比较头疼。 ......