print-formatted-with-debug.md

November 21, 2015 ยท View on GitHub

Print formatted with debug

def debug(name, content)
  p "%s:  %p" % [name, content]
end

debug "Num", 42

# Result:
# "Num:  42"

View Source