lib/knj/knj.rb in knjrbfw-0.0.75 vs lib/knj/knj.rb in knjrbfw-0.0.77
- old
+ new
@@ -30,9 +30,10 @@
return File.realpath(File.dirname(__FILE__))
end
#Shortcut to Php4r.print_r.
def self.p(*args, &block)
+ require "php4r" if !Kernel.const_defined?(:Php4r)
return Php4r.print_r(*args, &block)
end
def self.handle_return(args)
if args[:block]
\ No newline at end of file