Class: RuntimeNameHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/javonet-ruby-sdk/utils/runtime_name_handler.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/utils/runtime_name_handler.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/utils/runtime_name_handler.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/utils/runtime_name_handler.rb

Class Method Summary collapse

Class Method Details

.get_name(runtime_name) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/javonet-ruby-sdk/utils/runtime_name_handler.rb', line 5

def self.get_name(runtime_name)
  if runtime_name == RuntimeName::CLR
    return 'clr'
  end
  if runtime_name == RuntimeName::GO
    return 'go'
  end
  if runtime_name == RuntimeName::JVM
    return 'jvm'
  end
  if runtime_name == RuntimeName::NETCORE
    return 'netcore'
  end
  if runtime_name == RuntimeName::PERL
    return 'perl'
  end
  if runtime_name == RuntimeName::PYTHON
    return 'python'
  end
  if runtime_name == RuntimeName::RUBY
    return 'ruby'
  end
  if runtime_name == RuntimeName::NODEJS
    return 'nodejs'
  end
  if runtime_name == RuntimeName::CPP
    return 'cpp'
  end
end