Class: ExecJS::FastNode::ExternalPipedRuntime
- Inherits:
-
Runtime
- Object
- Runtime
- ExecJS::FastNode::ExternalPipedRuntime
- Defined in:
- lib/execjs/fastnode/external_piped_runtime.rb
Defined Under Namespace
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.
121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 121 def initialize() @name = [:name] @command = Command.new([:command]) @runner_path = [:runner_path] @encoding = [:encoding] @deprecated = !![:deprecated] @binary = nil = {} [: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.
119 120 121 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 119 def name @name end |
#vm ⇒ Object (readonly)
Returns the value of attribute vm.
119 120 121 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 119 def vm @vm end |
Instance Method Details
#available? ⇒ Boolean
141 142 143 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 141 def available? binary ? true : false end |
#deprecated? ⇒ Boolean
145 146 147 |
# File 'lib/execjs/fastnode/external_piped_runtime.rb', line 145 def deprecated? @deprecated end |