ruby_figlet 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -18
- 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: ac3245b09860b48d3dae0246e34369c09eb92dec
|
4
|
+
data.tar.gz: d81a8f152455ee778682d3729c3679edd256a528
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3d98b4e02933be7ceb56cbcff3c6032d3420d11e5bdbfdcfe3feac9ca6404cbab273f5a5ba61eac324cd78be76d5a02fb4be35868579cde8f7efce51b850777
|
7
|
+
data.tar.gz: 418f9251ee787fac3c8dc9fe8c64f1af29214067e647ab15074e73e5247d7144b48702d31aba924c2eff0f044dcc57fa14a7be79135c9fb1d054691d2b5f7d08
|
data/README.md
CHANGED
@@ -12,13 +12,13 @@ In your shell
|
|
12
12
|
```shell
|
13
13
|
ruby-figlet -f alligator "ruby"
|
14
14
|
|
15
|
-
::::::::: ::: :::
|
16
|
-
:+: :+: :+: :+:
|
17
|
-
+:+ +:+ +:+ +:+
|
18
|
-
+#++:++#: +#+ +:+
|
19
|
-
+#+ +#+ +#+ +#+
|
20
|
-
#+# #+# #+# #+#
|
21
|
-
### ### ########
|
15
|
+
::::::::: ::: ::: ::::::::: ::: :::
|
16
|
+
:+: :+: :+: :+: :+: :+: :+: :+:
|
17
|
+
+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
|
18
|
+
+#++:++#: +#+ +:+ +#++:++#+ +#++:
|
19
|
+
+#+ +#+ +#+ +#+ +#+ +#+ +#+
|
20
|
+
#+# #+# #+# #+# #+# #+# #+#
|
21
|
+
### ### ######## ######### ###
|
22
22
|
|
23
23
|
```
|
24
24
|
But mainly as a library
|
@@ -31,7 +31,6 @@ puts RubyFiglet::Figlet.available # see all fonts and more in other dirs
|
|
31
31
|
moo = "Moo!"
|
32
32
|
moo.art!
|
33
33
|
puts moo # Default font is 'standard' when no arguments given
|
34
|
-
# =>
|
35
34
|
# __ __ _
|
36
35
|
# | \/ | ___ ___ | |
|
37
36
|
# | |\/| | / _ \ / _ \ | |
|
@@ -42,7 +41,7 @@ puts moo # Default font is 'standard' when no arguments given
|
|
42
41
|
|
43
42
|
puts "meow...".art # all
|
44
43
|
puts RubyFiglet::Figlet.new("meow...").stringify # work
|
45
|
-
RubyFiglet::Figlet.new("meow...").show
|
44
|
+
RubyFiglet::Figlet.new("meow...").show # equally
|
46
45
|
|
47
46
|
# str.art(font)/str.art!(font) and RubyFiglet::Figlet.new(str, font) have a font parameter!
|
48
47
|
|
@@ -59,8 +58,8 @@ puts "Heizölrückstoßabdämpfung".art # =>
|
|
59
58
|
# |_| |_| |___/
|
60
59
|
|
61
60
|
puts RubyFiglet::Figlet.new("It's an abstract sort of font", 'weird').stringify # =>
|
62
|
-
#
|
63
|
-
#
|
61
|
+
# __ __
|
62
|
+
# / / / / / / / / / /
|
64
63
|
# ( (___ ___ ___ ___ ___ (___ ___ (___ ___ ___ ___ (___ ___ ___ ___ (___ ___ ( ( ___ ___ (___
|
65
64
|
# | | |___ | )| ) | )| )|___ | | )| )| | |___ | )| )| | )|___ |___ | )| )|
|
66
65
|
# | |__ __/ |__/|| / |__/||__/ __/ |__ | |__/||__ |__ __/ |__/ | |__ |__/ | | |__/ | / |__
|
@@ -69,13 +68,14 @@ puts RubyFiglet::Figlet.new("It's an abstract sort of font", 'weird').stringify
|
|
69
68
|
|
70
69
|
bowl = "Soup?"
|
71
70
|
bowl.art! 'alphabet'
|
72
|
-
puts bowl
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
71
|
+
puts bowl
|
72
|
+
# => SSS ???
|
73
|
+
# S ? ?
|
74
|
+
# SSS ooo u u ppp ?
|
75
|
+
# S o o u u p p ?
|
76
|
+
# SSSS ooo uuu ppp ?
|
77
|
+
# p
|
78
|
+
# p
|
79
79
|
|
80
80
|
# Newline support!
|
81
81
|
two_lines = RubyFiglet::Figlet.new "broken\nline", 'basic'
|