module Ngannotate::ProcessorCommon::ClassMethods

Public Instance Methods

name() click to toggle source
# File lib/ngannotate/processor_common.rb, line 8
def name
  'Ngannotate::Processor'
end
shared_exec_context() click to toggle source
# File lib/ngannotate/processor_common.rb, line 12
def shared_exec_context
  @shared_exec_context ||=
    begin
      ::Rails.logger.info "ng-prepare"
      ngannotate_source = File.open(File.expand_path('../../../vendor/ngannotate.js', __FILE__)).read
      ExecJS.compile "window = {};" + ngannotate_source
    end
end