lib/kilza/language/java.rb in kilza-1.0.1 vs lib/kilza/language/java.rb in kilza-1.0.2
- old
+ new
@@ -6,9 +6,14 @@
class Class
include Kilza::Class
attr_accessor :package
+ def initialize(name, package = nil)
+ super(name)
+ @package = package
+ end
+
def sources
cur_path = File.expand_path(__FILE__)
java_path = File.join(File.dirname(cur_path), File.basename(cur_path, '.rb'), "java.erb")
eruby_java = Erubis::Eruby.new(File.read(java_path))