Sha256: ceba4737bb90697b36006640fef176b7cdccb7063b31b000e35aa421f419a5d0

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

autoload :Pd_VERSION, "pd/version"

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

	# 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

require "ap"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pd-1.0.5 lib/pd.rb