lib/knj/php_parser/php_parser.rb in knjrbfw-0.0.8 vs lib/knj/php_parser/php_parser.rb in knjrbfw-0.0.9
- old
+ new
@@ -1,23 +1,23 @@
class Knj::Php_parser
- attr_reader :cont, :retcont
-
- def initialize(args)
- @args = args
- @cont = File.read(@args["file"])
-
- if !args.key?("require_requirements") or args["require_requirements"]
- @retcont = "require \"knj/autoload\"\n"
- @retcont += "require \"knj/php\"\n"
- @retcont += "require \"knj/php_parser/php_parser\"\n"
- @retcont += "\n"
- else
- @retcont = ""
- end
- end
+ attr_reader :cont, :retcont
+
+ def initialize(args)
+ @args = args
+ @cont = File.read(@args["file"])
+
+ if !args.key?("require_requirements") or args["require_requirements"]
+ @retcont = "require \"knj/autoload\"\n"
+ @retcont << "require \"knj/php\"\n"
+ @retcont << "require \"knj/php_parser/php_parser\"\n"
+ @retcont << "\n"
+ else
+ @retcont = ""
+ end
+ end
end
require File.dirname(__FILE__) + "/functions.rb"
module Knj::Php_parser::Functions
- #nothing here.
+ #nothing here.
end
\ No newline at end of file