p generator = (1..6).each puts puts generator.methods.sort
Standard input is empty
#<Enumerator: 1..6:each> ! != !~ <=> == === =~ __id__ __send__ all? any? chunk chunk_while class clone collect collect_concat count cycle define_singleton_method detect display drop drop_while dup each each_cons each_entry each_slice each_with_index each_with_object entries enum_for eql? equal? extend feed find find_all find_index first flat_map freeze frozen? grep grep_v group_by hash include? inject inspect instance_eval instance_exec instance_of? instance_variable_defined? instance_variable_get instance_variable_set instance_variables is_a? itself kind_of? lazy map max max_by member? method methods min min_by minmax minmax_by next next_values nil? none? object_id one? partition peek peek_values pp private_methods protected_methods public_method public_methods public_send reduce reject remove_instance_variable respond_to? reverse_each rewind select send singleton_class singleton_method singleton_methods size slice_after slice_before slice_when sort sort_by sum taint tainted? take take_while tap to_a to_enum to_h to_s trust uniq untaint untrust untrusted? with_index with_object yield_self zip