Skip to content

Commit e1a2efe

Browse files
author
Yogansh Sharma
committed
Adding ruby support
1 parent 46cab03 commit e1a2efe

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

run

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ run() {
210210
elif [[ ${FILE#*.} == lua ]]; then
211211
lua "$FILE"
212212

213+
elif [[ ${FILE#*.} == rb ]]; then
214+
ruby "$FILE"
215+
213216
else
214217
_ERROR_UFTC_
215218
_EXIT_
@@ -240,10 +243,11 @@ for arg in "$@"; do
240243
echo " ${yellow}>>${white} Golang"
241244
echo " ${yellow}>>${white} Perl"
242245
echo " ${yellow}>>${white} Lua"
246+
echo " ${yellow}>>${white} Ruby"
243247
echo
244248
;;
245249

246-
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go" | *".pl" | *".lua")
250+
*".c" | *".cpp" | *".py" | *".rs" | *".java" | *".sh" | *".js" | *".go" | *".pl" | *".lua" | *".rb")
247251
FILE_LOCATION=$arg
248252
if [[ ! -f $FILE_LOCATION ]]; then
249253
_ERROR_UFTC_

0 commit comments

Comments
 (0)