lib/jcompiler/compiler.rb in jcompiler-0.1.58 vs lib/jcompiler/compiler.rb in jcompiler-0.1.59
- old
+ new
@@ -1,8 +1,14 @@
class Jcompiler::Compiler
def initialize(source, bind)
+ @source = source
+ @bind = bind
end
def compile
- '[]'
+ bind.eval('[]')
end
+
+ protected
+
+ attr_reader :source, :bind
end