Sha256: c303e782c6fee4ca5e0d785c37f9c219ee33b6fb352ccd7cb3b7e43894db3725

Contents?: true

Size: 664 Bytes

Versions: 6

Compression:

Stored size: 664 Bytes

Contents

module RuntimeName
  CLR = 0
  GO = 1
  JVM = 2
  NETCORE = 3
  PERL = 4
  PYTHON = 5
  RUBY = 6
  NODEJS = 7
  CPP = 8

  def self.get_name(runtime_number)
    if runtime_number == 0
      return 'CLR'
    end
    if runtime_number == 1
      return 'GO'
    end
    if runtime_number == 2
      return 'JVM'
    end
    if runtime_number == 3
      return 'NETCORE'
    end
    if runtime_number == 4
      return 'PERL'
    end
    if runtime_number == 5
      return 'PYTHON'
    end
    if runtime_number == 6
      return 'RUBY'
    end
    if runtime_number == 7
      return 'NODEJS'
    end
    if runtime_number == 8
      return 'CPP'
    end
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.3.0 lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/utils/runtime_name.rb
javonet-ruby-sdk-2.3.0 lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/utils/runtime_name.rb
javonet-ruby-sdk-2.2.0 lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/utils/runtime_name.rb
javonet-ruby-sdk-2.2.0 lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/utils/runtime_name.rb
javonet-ruby-sdk-2.1.14 lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/utils/runtime_name.rb
javonet-ruby-sdk-2.1.14 lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/utils/runtime_name.rb