shenanigans 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/Array.html +20 -6
- data/doc/Fixnum.html +11 -3
- data/doc/Hash.html +26 -11
- data/doc/Kernel.html +75 -13
- data/doc/Module.html +208 -0
- data/doc/Object.html +20 -7
- data/doc/README_rdoc.html +31 -12
- data/doc/String.html +12 -4
- data/doc/created.rid +25 -22
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/index.html +15 -14
- data/doc/js/darkfish.js +9 -7
- data/doc/js/search_index.js +1 -1
- data/doc/rdoc.css +52 -0
- data/doc/table_of_contents.html +8 -1
- data/lib/shenanigans/kernel.rb +1 -0
- data/lib/shenanigans/kernel/fn.rb +2 -0
- data/lib/shenanigans/kernel/prompt.rb +1 -0
- data/lib/shenanigans/kernel/require_optional.rb +19 -0
- data/lib/shenanigans/kernel/with.rb +2 -0
- data/lib/shenanigans/module/private_accessor.rb +4 -2
- data/test/kernel/test_require_optional.rb +17 -0
- metadata +7 -3
- data/lib/shenanigans/README.mdown +0 -57
@@ -1,57 +0,0 @@
|
|
1
|
-
[](http://travis-ci.org/citizen428/shenanigans)
|
2
|
-
|
3
|
-
Shenanigans
|
4
|
-
=====
|
5
|
-
|
6
|
-
shenanigan (plural shenanigans)
|
7
|
-
|
8
|
-
1. Trickery, games; skulduggery. To "call", "claim" or "declare" shenanigans is to rhetorically label something as officially deceitful, improper, or otherwise incorrect.
|
9
|
-
|
10
|
-
_"The advertisement said it would cost $50 but they charged me $75 at the register. I declare **shenanigans.**"_
|
11
|
-
|
12
|
-
The speaker passes off the statement as having some sort of implied official effect, but in reality, it is simply a complaint.
|
13
|
-
|
14
|
-
2. A deceitful confidence trick, or mischief causing discomfort or annoyance.
|
15
|
-
|
16
|
-
_You should learn to spot their shenanigans and avoid being fooled._
|
17
|
-
|
18
|
-
3. Mischievous play, especially by children.
|
19
|
-
|
20
|
-
Source: [Wiktionary](http://en.wiktionary.org/wiki/shenanigan#English)
|
21
|
-
|
22
|
-
Introduction
|
23
|
-
----
|
24
|
-
|
25
|
-
[Ruby Facets](https://github.com/rubyworks/facets) is the premiere collection of general purpose method extensions and standard additions for the Ruby programming language. This is not Ruby Facets however, but a random collection of methods I wrote for myself that I find interesting and/or useful. That said, some of them actually are in Facets, although sometimes under different names or slightly changed.
|
26
|
-
|
27
|
-
Installation
|
28
|
-
----
|
29
|
-
|
30
|
-
Shenanigans is available through [RubyGems](http://rubygems.org/):
|
31
|
-
|
32
|
-
$ gem install shenanigans
|
33
|
-
|
34
|
-
Usage
|
35
|
-
----
|
36
|
-
|
37
|
-
You can add a single method with `require 'shenanigans/<class|module>/<method>'`, e.g.:
|
38
|
-
|
39
|
-
require 'shenanigans/array/zip_with'
|
40
|
-
|
41
|
-
If you want to add all the extensions for a single class or module, use `require 'shenanigans/<class|module>'`:
|
42
|
-
|
43
|
-
require 'shenanigans/kernel'
|
44
|
-
|
45
|
-
And if you really feel like it, you can also require everything thus:
|
46
|
-
|
47
|
-
require 'shenanigans'
|
48
|
-
|
49
|
-
Contribute
|
50
|
-
----
|
51
|
-
|
52
|
-
If you have a cool method you'd like to see included here, you should really reconsider and try to contribute it to Facets instead! This is mainly a dumping ground for my own pet methods and unless it becomes popular for a strange reason, people are not likely to use this library.
|
53
|
-
|
54
|
-
License
|
55
|
-
----
|
56
|
-
|
57
|
-
This project is under the MIT license. You can see the full license text [online](http://www.opensource.org/licenses/mit-license.php/) or in the provided `LICENSE` file.
|