Can I use only Ruby or Crystal Lang with an Arduino?
You could bridging via Firmata: https://playground.arduino.cc/Interfacing/Ruby/
Another resource is https://code.tutsplus.com/articles/using-ruby-to-program-arduino--cms-21893
You will need to Flash your Arduino with Firmata and then program in Ruby.
I'm not sure if that would work with Crystal.