Skip to content

Commit 71dc96d

Browse files
committed
added ruby
1 parent f6cd35e commit 71dc96d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎v3/js/opt-office-mix.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ function executeCode(forceStartingInstr, forceRawInputLst) {
6666
else if ($('#pythonVersionSelector').val() == 'ts') {
6767
backend_script = ts_backend_script;
6868
}
69+
else if ($('#pythonVersionSelector').val() == 'ruby') {
70+
backend_script = ruby_backend_script;
71+
}
6972
else if ($('#pythonVersionSelector').val() == 'java') {
7073
backend_script = java_backend_script;
7174
}

‎v3/opt-office-mix.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
<option value="java">Java</option>
9696
<option value="js">JavaScript</option>
9797
<option value="ts">TypeScript</option>
98+
<option value="ruby">Ruby</option>
9899
</select>
99100

100101
</div>
@@ -116,7 +117,8 @@
116117

117118
<p>
118119
<a href="http://pythontutor.com/" target="_blank">Online Python Tutor</a> supports
119-
Python 2.7 and 3.3, Java 7, JavaScript ES5 strict, and TypeScript 1.4.1 with limited module imports and no file I/O.
120+
Python 2.7 and 3.3, Java 7, JavaScript ES5 strict, TypeScript 1.4.1, and Ruby 2.2.2
121+
with limited module imports and no file I/O.
120122
<a href="support-and-privacy.html" target="_blank">Privacy and Terms of Use</a>.
121123
</p>
122124

0 commit comments

Comments
 (0)