Top "Ruby-2.3" questions

For issues relating to development in Ruby, version 2.3. If your question applies to Ruby in general, use the tag [ruby].

Ruby: What does the comment "frozen_string_literal: true" do?

This is the rspec binstub in my project directory. #!/usr/bin/env ruby begin load File.expand_path("../spring", __FILE__) …

ruby string immutability ruby-2.3
What does &. (ampersand dot) mean in Ruby?

I came across this line of ruby code. What does &. mean in this? @object&.method

ruby syntax operators parameter-passing ruby-2.3
Installing Ruby 2.3.x on Ubuntu 18.04 is causing an error by the end of the installation process

I recently updated my system to Ubuntu 18.04 LTS, and since then, the Ruby version seems to have updated to 2.5. The …

ruby ruby-2.3 ubuntu-18.04
Safe navigation operator (&.) for nil

As Ruby 2.3 introduces the Safe navigation operator(&.), a.k.a lonely operator, the behavior on nil object seems odd. …

ruby ruby-2.3 safe-navigation-operator