lib/pd.rb in pd-1.0.3 vs lib/pd.rb in pd-1.0.5
- old
+ new
@@ -1,22 +1,27 @@
+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(", ")
+ def pd(*args)
+ puts args.map{|v|v.inspect}.join(" ")
end
- # *for debug* print hr. puts '='*14 + " #{name}"
+ # 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}"
+ def phr(name=nil)
+ puts "="*14 + " #{name}"
end
end
+
+require "ap"
+