1 puts
, p
, print
2 require
3 raise
, throw
, warn
4 new
5 to_s
, to_i
, to_f
, to_sym
6 private
, protected
7 class
1 puts
, p
, print
2 require
3 raise
, throw
, warn
4 new
5 to_s
, to_i
, to_f
, to_sym
6 private
, protected
7 class
I use raise quite often, sometimes like a debugger statement. It's one of the methods most people take for a keyword when they first see it. I've never seen somebody call it with brackets. throw and warn are just variants that belong into the category.
1
1
1
1
1
1