Class: TypeScript::Node::CompileResult
- Inherits:
-
Object
- Object
- TypeScript::Node::CompileResult
- Defined in:
- lib/typescript-node/compile_result.rb
Instance Attribute Summary collapse
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#js ⇒ Object
readonly
Returns the value of attribute js.
-
#source_map ⇒ Object
readonly
Returns the value of attribute source_map.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(js, exit_status, stdout, stderr) ⇒ String
constructor
Constructor.
- #success? ⇒ Boolean
Constructor Details
#initialize(js, exit_status, stdout, stderr) ⇒ String
Constructor
13 14 15 16 17 18 |
# File 'lib/typescript-node/compile_result.rb', line 13 def initialize(js, exit_status, stdout, stderr) @js = js @exit_status = exit_status @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#exit_status ⇒ Object (readonly)
Returns the value of attribute exit_status.
20 21 22 |
# File 'lib/typescript-node/compile_result.rb', line 20 def exit_status @exit_status end |
#js ⇒ Object (readonly)
Returns the value of attribute js.
20 21 22 |
# File 'lib/typescript-node/compile_result.rb', line 20 def js @js end |
#source_map ⇒ Object (readonly)
Returns the value of attribute source_map.
20 21 22 |
# File 'lib/typescript-node/compile_result.rb', line 20 def source_map @source_map end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
20 21 22 |
# File 'lib/typescript-node/compile_result.rb', line 20 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
20 21 22 |
# File 'lib/typescript-node/compile_result.rb', line 20 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
22 23 24 |
# File 'lib/typescript-node/compile_result.rb', line 22 def success? @exit_status == 0 end |