Kevin Newton | Ruby operators
28-Jul-2023 938
First, we have the operators that are used to call methods. These are not the names of the methods themselves, but rather specify the manner in which the method should be called. They are:. - This is the main call operator. It calls a method on the receiver, as in: foo.bar.:: - Although this is normally used as the constant resolution operator, it can also be used to call methods in almost any place . can be used. For example, foo::bar is equivalent to foo.bar.
Kevin Newton | Ruby operators #ruby #rubydeveloper #rubyonrails #Kevin #Newton #operators https://rubyonrails.ba/link/kevin-newton-ruby-operators