Sha256: 478b6d57faac381df54fb87c50af3153d57fa3d61ca76a63b1f9bcc6ac4f18a8
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
== What Ruby Extension Library version 0.0.4 This is a collection of Ruby class monkeypatches. Some of these are by me and some have been swiped from other places. I have no shame. == How require 'rubygems' require 'rex' Stuff you get: Array#swap!(a, b) File#random_line(separator="#{$/}", seed=nil) Integer#to_ordinal Integer#from_ordinal(ordinal) Integer#to_roman Integer#from_roman(roman) Kernel#boolean? Kernel#caller_name Kernel#stack_trace(msg=nil) Kernel#Tuple(*ary) String#propercase String#scrub!(allowed=BASIC_MARKUP) String#wrap(columns=78) Symbol#to_proc You can run the example programs in the examples directory to see what the above methods do. You can run the example programs from anywhere, e.g.: ruby ~/src/projects/rex/examples/stacktrace.rb == Install To construct a Ruby gem, just type: rake gem To install it, type: sudo gem install pkg/rex-0.0.4.gem == Notes I haven't tested this code with YARV, so YMMV. Symbol#to_proc comes from the blog post: http://weblog.raganwald.com/2008/02/1100inject.html == Contribute The source is availble at github: git://github.com/yesmar/rex.git. Feel free to clone it and implement your own awesome ideas. You can also send your patches by email to yesmar[at]speakeasy[dot]net.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rex-0.0.4 | README |