Class: ExecJS::FastNode::ExternalPipedRuntime
- Inherits:
-
Runtime
- Object
- Runtime
- ExecJS::FastNode::ExternalPipedRuntime
- Defined in:
- lib/execjs/fastnode/external_piped_runtime.rb
Defined Under Namespace
Classes: Context, VM, VMCommand
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#vm ⇒ Object
readonly
Returns the value of attribute vm.
Instance Method Summary collapse
- #available? ⇒ Boolean
- #deprecated? ⇒ Boolean
-
#initialize(options) ⇒ ExternalPipedRuntime
constructor
A new instance of ExternalPipedRuntime.
Constructor Details
#initialize(options) ⇒ ExternalPipedRuntime
Returns a new instance of ExternalPipedRuntime.
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 174 def initialize() @name = [:name] @command = Command.new([:command]) @runner_path = [:runner_path] @encoding = [:encoding] @deprecated = !![:deprecated] @binary = nil @vm = VM.new( binary: binary, runner_path: @runner_path ) = {} [:external_encoding] = @encoding if @encoding [:internal_encoding] = ::Encoding.default_internal || 'UTF-8' end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
172 173 174 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 172 def name @name end |
#vm ⇒ Object (readonly)
Returns the value of attribute vm.
172 173 174 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 172 def vm @vm end |
Instance Method Details
#available? ⇒ Boolean
192 193 194 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 192 def available? binary ? true : false end |
#deprecated? ⇒ Boolean
196 197 198 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 196 def deprecated? @deprecated end |