class ExecJS::FastNode::ExternalPipedRuntime
Attributes
name[R]
vm[R]
Public Class Methods
new(options)
click to toggle source
# File lib/execjs/fastnode/external_piped_runtime.rb, line 174 def initialize(options) @name = options[:name] @command = Command.new(options[:command]) @runner_path = options[:runner_path] @encoding = options[:encoding] @deprecated = !!options[:deprecated] @binary = nil @vm = VM.new( binary: binary, runner_path: @runner_path ) @popen_options = {} @popen_options[:external_encoding] = @encoding if @encoding @popen_options[:internal_encoding] = ::Encoding.default_internal || 'UTF-8' end
Public Instance Methods
available?()
click to toggle source
# File lib/execjs/fastnode/external_piped_runtime.rb, line 192 def available? binary ? true : false end
deprecated?()
click to toggle source
# File lib/execjs/fastnode/external_piped_runtime.rb, line 196 def deprecated? @deprecated end
Private Instance Methods
binary()
click to toggle source
# File lib/execjs/fastnode/external_piped_runtime.rb, line 201 def binary @binary ||= @command.to_cmd end