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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64d90ce992857d040668767209138558dec6f083
4
- data.tar.gz: ba3511e82a63bbcdb605c6a22e4027ea6b92af63
3
+ metadata.gz: ef64a809399c557f3cf2308357a1dd1caaa16568
4
+ data.tar.gz: 9aff3188bba5b720f581eeb8392ad52b2fad2a93
5
5
  SHA512:
6
- metadata.gz: ac978ca94561dd14c52d0dc79e83c346009e5dd77588b9d6678516aaaa2c8916bd28ce56f6e7f3c90fbe6a97b0433054eaf304b9ed15ee8da2b1094c26aa0d55
7
- data.tar.gz: 0f077496c22f67a5a94d040371e5c8d98405740af38c7ac145952c9eeb7c25014f3ff66bef9c87d9265affa26489cdb98b015a2eec908c53651e17c7eaf72c56
6
+ metadata.gz: 5452e350269b3422a4f5971c10ba0f25d2d2333bbfabc1711a281977d9573e9ed4c109067d8779ba942e58b133973b3624b10acabbb10c37fddf6ae3d43d9d5d
7
+ data.tar.gz: 06767a22b8ea9f738060d90700dc0f185727c7eec92ea9d47961031226543e60f4537e4ea8152a2e3f90b4ea231e473923e3b81d3e6ec72a63ec609481195e10
@@ -1,3 +1,3 @@
1
1
  module Putsplus
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/putsplus.rb CHANGED
@@ -1,9 +1,12 @@
1
1
  require "putsplus/version"
2
2
 
3
3
  module Putsplus
4
- #puts on steroids
5
-
6
- #global functions
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
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Jubelirer