APIdock / Ruby
/
Browse About
method

main

v2_2_9 - Show latest stable - Class: Thread
main()
public

Returns the main thread.

static VALUE
rb_thread_s_main(VALUE klass)
{
    return rb_thread_main();
}

Related methods

  • Instance methods
  • []
  • []=
  • abort_on_exception
  • abort_on_exception=
  • add_trace_func
  • alive?
  • backtrace
  • backtrace_locations
  • exit
  • group
  • inspect
  • join
  • key?
  • keys
  • kill
  • pending_interrupt?
  • priority
  • priority=
  • raise
  • run
  • safe_level
  • set_trace_func
  • status
  • stop?
  • terminate
  • thread_variable?
  • thread_variable_get
  • thread_variable_set
  • thread_variables
  • value
  • wakeup
  • Class methods
  • DEBUG
  • DEBUG=
  • abort_on_exception
  • abort_on_exception=
  • current
  • exclusive
  • exit
  • fork
  • handle_interrupt
  • kill
  • list
  • main
  • new
  • pass
  • pending_interrupt?
  • start
  • stop
APIdock API Documentation Browser

© 2026 APIdock