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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 226d54ab01c42e2d712c8f9f5d216b27be8287b8
4
- data.tar.gz: 25ce37f554f4d50eb293849673df5e7309a88b89
3
+ metadata.gz: ea8ccee75b8a7cc9add56a2424924e98c35c0fe8
4
+ data.tar.gz: 580396c493a3e793255783dd6a746d2824940103
5
5
  SHA512:
6
- metadata.gz: cdc56a97aa271e2162ba66ce80dec6ecd3a495e83efb750d6c1c0d852dec531bb66402f9a03091288f61239d6c8cbf9df631181ee4b68d754764e10207d97a1d
7
- data.tar.gz: 9bec467d4f0d87ee923f9eea6b0fa98840f08fac59e315a6e8e10f8105fae93ef9d9db62d37d2e49acdeb13fa21d340ea17a8948faa11b9008f966f3f0651277
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
 
@@ -1,3 +1,3 @@
1
1
  module Putsplus
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: putsplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Jubelirer