lib/nilac/compile_ruby_methods.rb in nilac-0.0.4.3.9.6 vs lib/nilac/compile_ruby_methods.rb in nilac-0.0.4.3.9.7

- old
+ new

@@ -63,10 +63,12 @@ ".upcase" => ".toUpperCase()", ".downcase" => ".toLowerCase()", + ".zero?" => " === 0", + } method_map = method_map_replacement.keys method_map_regex = method_map.collect {|name| name.gsub(".","\\.")} @@ -81,10 +83,10 @@ method_match = line.match(method_map_regex).to_a[0] unless line.include?(method_match + "(") - line = line.sub(method_match,method_map_replacement[method_match]) + line = line.gsub(method_match,method_map_replacement[method_match]) end end \ No newline at end of file