🕷 software projects

by ryan davis



sitemap

rubyaudit

A silly project to compare and port features from other languages to ruby

** Note: ** This project is EOL’ed.

Ruby Language Audit is our attempt to bring beneficial features to ruby that don’t require modifications to the ruby language itself. Currently we’ve added:

  • Tuple (python) - immutable arrays, can be used as hash keys.
  • Range (python) - allows for a skip values
1
2
3
4
  t = Tuple.new("something", 2, 3)
  => ["something", 2, 3]
  t[0] = 'blah'
  => TypeError: can't modify frozen array
1
2
3
  r = Range.new(0, 10, 2)
  r.to_a
  => [0, 2, 4, 6, 8, 10]

Get The Code

If you just want to use rubyaudit, you can install it via RubyGems:
gem install rubyaudit
Fork me on GitHub If you want to hack on rubyaudit, clone it from GitHub:
git clone git://github.com/seattlerb/rubyaudit

Latest Activity