Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Returns an array of all the symbols currently in Ruby's symbol table.
Symbol.all_symbols.size    #=> 903
Symbol.all_symbols[1,20]   #=> [:floor, :ARGV, :Binding, :symlink,
                                :chown, :EOFError, :$;, :String,
                                :LOCK_SH, :"setuid?", :$<,
                                :default_proc, :compact, :extend,
                                :Tms, :getwd, :$=, :ThreadGroup,
                                :wait2, :$>]
 
               static VALUE
sym_all_symbols(VALUE _)
{
    return rb_sym_all_symbols();
}
            

Was this page useful?