pythonism 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +28 -1
- data/lib/pythonism/classes.rb +1 -0
- data/lib/pythonism/classes/nil_class.rb +1 -1
- data/lib/pythonism/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -19,7 +19,34 @@ Or install it yourself as:
|
|
19
19
|
|
20
20
|
## Usage
|
21
21
|
|
22
|
-
|
22
|
+
```ruby
|
23
|
+
MegurineLuka% irb
|
24
|
+
irb(main):001:0> require 'pythonism'
|
25
|
+
=> True
|
26
|
+
irb(main):002:0> import this
|
27
|
+
The Zen of Python, by Tim Peters
|
28
|
+
|
29
|
+
Beautiful is better than ugly.
|
30
|
+
Explicit is better than implicit.
|
31
|
+
Simple is better than complex.
|
32
|
+
Complex is better than complicated.
|
33
|
+
Flat is better than nested.
|
34
|
+
Sparse is better than dense.
|
35
|
+
Readability counts.
|
36
|
+
Special cases aren't special enough to break the rules.
|
37
|
+
Although practicality beats purity.
|
38
|
+
Errors should never pass silently.
|
39
|
+
Unless explicitly silenced.
|
40
|
+
In the face of ambiguity, refuse the temptation to guess.
|
41
|
+
There should be one-- and preferably only one --obvious way to do it.
|
42
|
+
Although that way may not be obvious at first unless you're Dutch.
|
43
|
+
Now is better than never.
|
44
|
+
Although never is often better than *right* now.
|
45
|
+
If the implementation is hard to explain, it's a bad idea.
|
46
|
+
If the implementation is easy to explain, it may be a good idea.
|
47
|
+
Namespaces are one honking great idea -- let's do more of those!
|
48
|
+
=> nil
|
49
|
+
```
|
23
50
|
|
24
51
|
## Contributing
|
25
52
|
|
data/lib/pythonism/classes.rb
CHANGED
data/lib/pythonism/version.rb
CHANGED