putsplus 0.0.4 → 0.0.5
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/lib/putsplus.rb +11 -0
- data/lib/putsplus/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: ea8ccee75b8a7cc9add56a2424924e98c35c0fe8
|
|
4
|
+
data.tar.gz: 580396c493a3e793255783dd6a746d2824940103
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1283c41956b810ac1bc8c37b4c10f8386c62e5333b06bc95c263064c14e4cc7bde76fe791e5887bc809d5ef235ea26c201aa82b8011db6838823a412e785dd83
|
|
7
|
+
data.tar.gz: 3e04a57159267fa53ca885a4bac62a2de94546ae4935e79d32ea37cdf0a70080e68963f871f4de5a472103a1e2f47f988be8762bbed12e51ccd17c975511960a
|
data/lib/putsplus.rb
CHANGED
|
@@ -40,6 +40,17 @@ module Putsplus
|
|
|
40
40
|
puts char * num
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
+
#
|
|
44
|
+
#Puts the string given and then underlines it with the character provided
|
|
45
|
+
#Arguments:
|
|
46
|
+
# String: the string to puts
|
|
47
|
+
# Char: the char used to underline the string. Defaults to '-'
|
|
48
|
+
#
|
|
49
|
+
def underline string, char = '-'
|
|
50
|
+
puts string
|
|
51
|
+
linebr string.length, char
|
|
52
|
+
end
|
|
53
|
+
|
|
43
54
|
#PRIVATE VARS
|
|
44
55
|
private
|
|
45
56
|
|
data/lib/putsplus/version.rb
CHANGED