Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 60 lines (42 sloc) 1.898 kb
1b5c5dc @zenspider Added
zenspider authored
1 Audit
2 http://sf.net/projects/seattlerb/
3
4 DESCRIPTION:
5
6 Ruby Language Audit is our attempt to bring beneficial features to
7 ruby that don't require modifications to the ruby language
8 itself. Results of our audits are posted at:
9
10 http://www.zenspider.com/Language/Ruby/Audit.html
11
12 FEATURES/PROBLEMS:
13
14 + Tuple (python) - immutable arrays, can be used as hash keys.
15 + Range (python) - allows for a skip values
16 + more to come, see the URL above.
17
d1104fe @zenspider ugh. horrible typo
zenspider authored
18 SYNOPSIS:
1b5c5dc @zenspider Added
zenspider authored
19
20 t = Tuple.new("something", 2, 3)
21 => ["something", 2, 3]
22 t[0] = 'blah'
23 => TypeError: can't modify frozen array
24 r = Range.new(0, 10, 2)
25 r.to_a
26 => [0, 2, 4, 6, 8, 10]
27
28 REQUIREMENTS:
29
30 + Just a ruby interpreter, should work w/ any version(?).
31
32 INSTALL:
33
34 + copy them into your site_ruby directory. Nothing fancy here!
35
36 LICENSE:
37
38 (The MIT License)
39
40 Copyright (c) 2001-2002 Ryan Davis, Zen Spider Software
41
42 Permission is hereby granted, free of charge, to any person obtaining
43 a copy of this software and associated documentation files (the
44 "Software"), to deal in the Software without restriction, including
45 without limitation the rights to use, copy, modify, merge, publish,
46 distribute, sublicense, and/or sell copies of the Software, and to
47 permit persons to whom the Software is furnished to do so, subject to
48 the following conditions:
49
50 The above copyright notice and this permission notice shall be
51 included in all copies or substantial portions of the Software.
52
53 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
54 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
55 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
56 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
57 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
58 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
59 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.