Method: ExecJS::ExternalRuntime#initialize
- Defined in:
- lib/execjs/external_runtime.rb
#initialize(options) ⇒ ExternalRuntime
Returns a new instance of ExternalRuntime.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/execjs/external_runtime.rb', line 71 def initialize() @name = [:name] @command = [:command] @runner_path = [:runner_path] @encoding = [:encoding] @deprecated = !![:deprecated] @binary = nil @popen_options = {} @popen_options[:external_encoding] = @encoding if @encoding @popen_options[:internal_encoding] = ::Encoding.default_internal || 'UTF-8' if @runner_path instance_eval generate_compile_method(@runner_path) end end |