very_ants 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +23 -2
- data/bin/demo +1 -1
- data/lib/very_ants.rb +2 -2
- data/lib/very_ants/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97401c26760ed09adb9b24e2dd32c546f7da2ba0
|
4
|
+
data.tar.gz: 01d46cabf2cbc9973a8421fae1039ac98534c317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec27c3409dd52f91d2e1fc5ad817d5f3a2a0660e0d8911539c66b3efb4d2f2f09dbc7f0565b1e14d65444a5804e96960da1119833c08e0cccf4a9862ab75d26e
|
7
|
+
data.tar.gz: bee5af01387721d1f039df9e11d423453b96b15e88239eb0335bf3db898e8689b9a4175911910b551c9e1ae1452892d13de00c95c1c88c9003d0623f2addab18
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -47,7 +47,28 @@ Or install it yourself as:
|
|
47
47
|
|
48
48
|
## Usage
|
49
49
|
|
50
|
-
|
50
|
+
1. Require the gem
|
51
|
+
|
52
|
+
```
|
53
|
+
require "very_ants"
|
54
|
+
```
|
55
|
+
|
56
|
+
2. Set the variance constant
|
57
|
+
|
58
|
+
```
|
59
|
+
Fixnum::how_antsy_do_you_feel(4)
|
60
|
+
```
|
61
|
+
|
62
|
+
3. Try and (mostly) fail to get correct arithmetic results
|
63
|
+
|
64
|
+
```
|
65
|
+
5 + 7 == 12 # probably not, but who knows
|
66
|
+
```
|
67
|
+
|
68
|
+
Warning: weird things can occur if you're running this in a REPL. For instance,
|
69
|
+
when using `pry`, the arithmetic done internally by the interpreter seems to be
|
70
|
+
affected, so sometimes the line numbers will get screwed up or the interpreter
|
71
|
+
will crash.
|
51
72
|
|
52
73
|
## FAQ
|
53
74
|
|
@@ -60,7 +81,7 @@ You wouldn't.
|
|
60
81
|
I came up with the idea as a joke when talking to my roommate, and I thought it
|
61
82
|
would be funny.
|
62
83
|
|
63
|
-
|
84
|
+
### Isn't this is pretty slow way to do arithmetic?
|
64
85
|
|
65
86
|
Is efficiency really the reason you think this is a bad idea?
|
66
87
|
|
data/bin/demo
CHANGED
data/lib/very_ants.rb
CHANGED
data/lib/very_ants/version.rb
CHANGED