Sha256: fedc4b2303c00c11c1a0c3790cf9dba7f3edda1049242a52cc9b5c389686c3af

Contents?: true

Size: 593 Bytes

Versions: 3

Compression:

Stored size: 593 Bytes

Contents

module TypeScript
  module Ruby
    class CompileResult

      # Constructor
      #
      # @param [String] js compiled JavaScript
      # @param [Fixnum] exit_status return code of tsc command
      # @param [String] stdout Standard out
      # @return [String] stderr Standard err
      def initialize(js, exit_status, stdout, stderr)
        @js = js
        @exit_status = exit_status
        @stdout = stdout
        @stderr = stderr
      end

      attr_reader :js, :source_map, :exit_status, :stdout, :stderr

      def success?
        @exit_status == 0
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tsc-ruby-0.1.3 lib/tsc-ruby/compile_result.rb
tsc-ruby-0.1.1 lib/tsc-ruby/compile_result.rb
tsc-ruby-0.1.0 lib/tsc-ruby/compile_result.rb