putsplus 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/putsplus/version.rb +1 -1
- data/lib/putsplus.rb +6 -3
- 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: ef64a809399c557f3cf2308357a1dd1caaa16568
|
4
|
+
data.tar.gz: 9aff3188bba5b720f581eeb8392ad52b2fad2a93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5452e350269b3422a4f5971c10ba0f25d2d2333bbfabc1711a281977d9573e9ed4c109067d8779ba942e58b133973b3624b10acabbb10c37fddf6ae3d43d9d5d
|
7
|
+
data.tar.gz: 06767a22b8ea9f738060d90700dc0f185727c7eec92ea9d47961031226543e60f4537e4ea8152a2e3f90b4ea231e473923e3b81d3e6ec72a63ec609481195e10
|
data/lib/putsplus/version.rb
CHANGED
data/lib/putsplus.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
require "putsplus/version"
|
2
2
|
|
3
3
|
module Putsplus
|
4
|
-
|
5
|
-
|
6
|
-
#
|
4
|
+
|
5
|
+
# puts only if obj is not nil
|
6
|
+
#
|
7
|
+
# Arguments:
|
8
|
+
# obj: the obj that will be puts if it isn't nil
|
9
|
+
# prefix: obj to append to the puts if obj isn't nil
|
7
10
|
def nputs obj, prefix = nil
|
8
11
|
puts prefix.to_s + obj.to_s unless obj.nil?
|
9
12
|
end
|