Class: Esbuild::TransformResult
- Inherits:
-
Object
- Object
- Esbuild::TransformResult
- Defined in:
- lib/esbuild/transform_result.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#map ⇒ Object
readonly
Returns the value of attribute map.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(result) ⇒ TransformResult
constructor
A new instance of TransformResult.
Constructor Details
#initialize(result) ⇒ TransformResult
Returns a new instance of TransformResult.
5 6 7 8 9 |
# File 'lib/esbuild/transform_result.rb', line 5 def initialize(result) @code = read_file(result["codeFS"], result["code"]) @map = read_file(result["mapFS"], result["map"]) @warnings = result["warnings"] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/esbuild/transform_result.rb', line 3 def code @code end |
#map ⇒ Object (readonly)
Returns the value of attribute map.
3 4 5 |
# File 'lib/esbuild/transform_result.rb', line 3 def map @map end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
3 4 5 |
# File 'lib/esbuild/transform_result.rb', line 3 def warnings @warnings end |