Hi Ruby-rulez !
I often look at some code, for example un rails/active_record, where
functions name end with a ? or a !
Is this a special notation, meaning that the func or args or whatever
have some treatment before/after the body ? Or to show that the function
return a boolean (?) and the arg modified (!) ?
Generally the (?) means it returns a boolean and (!) means it modifies
the receiver (the object the method is being called on) in place, rather
than creating a new object.
irb(main):001:0> a = “Hello”
=> “Hello” #unmodified
=> “olleH” #modified
Hope that helps.