Sha256: aad37fe9c8894fffd1db62e5204ff0662ee938f246756aa6e69eead024aba96a

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

module Kernel
	# print for debug
	#
	# @overlaod pd(obj, ...)
	#   @param [Symbol]
	#   
	#
	# @overload pd(title, obj, ...)
	#   @param [Symbol] title if first arg is a Captial Symbol, use it as title
	#   @return [nil]
	def pd *args
		puts args.map{|v|v.inspect}.join(", ")
	end

	# *for debug* print hr. puts '='*14 + " #{name}"
	#
	# sometime, we just need a horizonal line to separate message for debug.
	# @param [String] name
	def phr name=nil
		puts '='*14 + " #{name}"
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pd-1.0.3 lib/pd.rb
pd-1.0.2 lib/pd.rb