├── 001_alo_mundo.rb ├── 002_top_object_main.rb ├── 003_expressoes_aritmeticas_sao_chamadas_de_metodos.rb ├── 004_toda_expressao_retorna_um_valor.rb ├── 005_interpolacao_de_strings.rb ├── 006_metodos_predicados_terminam_em_interrogacao.rb ├── 007_todo_objeto_possui_uma_identidade.rb ├── 008_cuidado_ao_comparar_valor_e_identidade.rb ├── 009_parenteses_sao_opcionais_quando_nao_ha_ambiguidade.rb ├── 010_ultimo_comando_eh_o_valor_de_retorno.rb ├── 011_atribuicao_com_operacao.rb ├── 012_atribuicao_multiplca.rb ├── 013_cuidado_com_alias_de_objetos.rb ├── 014_inspect_e_o_metodo_p.rb ├── 015_o_operador_splat_em_atribuicoes.rb ├── 016_ha_variaveis_globais_entre_nos.rb ├── 017_use_gets_para_a_entrada_padrao.rb ├── 018_chomp_nos_livra_do_incomodo_barra_n_do_gets.rb ├── 019_um_breve_comentario_sobre_o_protocolo_de_conversao_de_tipos.rb ├── 020_um_breve_comentario_sobre_constantes.rb ├── 021_crie_blocos_de_comentarios_com_igual_begin_e_igual_end.rb ├── 022_certifique_se_de_que_um_codigo_sempre_sera_executado_primeiro_com_BEGIN_chaves.rb ├── 023_certifique_se_de_que_um_codigo_sempre_sera_executado_antes_do_programa_terminar_com_END_chaves.rb ├── 024_certifique_se_de_que_um_codigo_sera_executado_antes_do_programa_terminar_com_at_exit.rb ├── 025_underline_underline_END_underline_underline_denota_fim_do_programa.rb ├── 026_temos_blocos_de_expressoes_com_begin_e_end_mas_nao_confunda_com_blocos_do_end.rb ├── 027_caso_uma_excecao_nao_seja_capturada_o_programa_termina_com_uma_mensagem_de_erro.rb ├── 028_capture_uma_excecao_com_rescue.rb ├── 029_rescue_pode_ser_utilizado_dentro_de_metodos_sem_necessidade_de_begin_end.rb ├── 030_caso_nenhuma_excecao_seja_capturada_por_rescue_execute_um_codigo_alternativo_com_else.rb ├── 031_garanta_que_um_codigo_sempre_sera_executado_com_ensure.rb ├── 032_capture_todos_os_tipos_de_excecoes_com_rescue_exception.rb ├── 033_execute_novamente_o_bloco_que_causou_a_excecao_com_retry.rb ├── 034_use_rescue_apos_um_unico_comando_como_uma_especie_de_or.rb ├── 035_lance_suas_proprias_excecoes_com_raise_ou_fail.rb ├── 036_um_pouco_sobre_catch_e_throw.rb ├── 037_use_ponto_de_interrogacao_e_dois_pontos_como_operador_ternario.rb ├── 038_unless_e_o_mesmo_que_if_not.rb ├── 039_use_elif_no_lugar_de_else_if.rb ├── 040_use_a_palavra_then_para_escrever_um_if_numa_unica_linha.rb ├── 041_guard_clause_use_if_ou_inless_apos_um_comando.rb ├── 042_use_while_para_modificar_um_bloco_begin_end_ou_um_unico_comando.rb ├── 043_use_until_para_modificar_um_bloco_begin_end_ou_um_unico_comando.rb ├── 044_cuidado_com_a_prioridade_de_alguns_operadores.rb ├── 045_use_case_when_para_escolher_entre_multiplas_condicoes.rb ├── 046_use_case_com_else_para_escolher_uma_opcao_padrao.rb ├── 047_use_case_when_then_para_expressoes_na_mesma_linha.rb ├── 048_use_case_when_para_testar_a_classe_de_seus_objetos.rb ├── 049_ruby_possui_o_comando_for_mas_voce_nao_deveria_usa_lo_nunca.rb ├── 050_ruby_tambem_possui_o_comando_while_e_until_mas_eh_muito_raro_utiliza_los_tambem.rb ├── 051_use_break_para_terminar_o_loop_mais_interno.rb ├── 052_use_next_para_pular_para_o_final_do_loop_seguindo_para_a_proxima_iteracao.rb ├── 053_use_redo_para_repetir_a_iteracao.rb ├── 054_use_o_metodo_loop_para_loops_infinitos_ou_nao_com_estilo.rb ├── 055_use_heredoc_para_strings_longas.rb ├── 056_existem_diversas_formas_de_se_declarar_uma_string.rb ├── 057_cuidado_com_operacoes_que_criam_novas_strings.rb ├── 058_use_o_metodo_split_para_separar_uma_string.rb ├── 059_retorne_uma_substring_de_uma_string.rb ├── 060_substitua_trechos_de_uma_string_com_replace_e_gsub.rb ├── 061_declarando_arrays_literais.rb ├── 062_acessando_elementos_de_um_array.rb ├── 063_uma_notacao_simples_para_arrays_de_strings.rb ├── 064_conheca_o_operador_da_pa.rb ├── 065_com_unshift_e_pop_ja_eh_possivel_implementar_as_estruturas_de_dados_mais_basicas_como_filas_e_pilhas.rb ├── 066_use_range_para_representar_intervalos.rb ├── 067_use_range_para_gerar_rapidamente_arrays.rb ├── 068_declarando_hashes_literais.rb ├── 069_use_fetch_para_retornar_um_valor_default_quando_a_chave_nao_existir.rb ├── 070_vamos_usar_o_valor_padrao_definido_no_construtor_de_uma_hash_para_calcular_fibonacci_de_uma_forma_interessante.rb ├── 071_gerencie_valores_default_de_argumentos_com_merge.rb ├── 072_use_open_struct_para_uma_estrutura_de_dados_intermediaria_entre_uma_hash_e_uma_classe.rb ├── 073_uma_pequena_introducao_a_blocos.rb ├── 074_blocos_podem_receber_argumentos.rb ├── 075_verifique_se_um_bloco_foi_passado_para_um_metodo_com_block_given.rb ├── 076_capture_um_bloco_com_ampersand.rb ├── 077_um_bloco_e_armazenado_como_um_proc.rb ├── 078_lambdas_verificam_numero_de_parametros_e_return_termina_sua_execução.rb ├── 079_blocos_estimulam_uma_filosofia_passe_para_a_frente.rb ├── 080_ruby_possui_enumeradores.rb ├── 081_voce_pode_usar_um_enumerador_para_gerar_numeros_de_fibonacci.rb ├── 082_o_metodo_each_percorre_todos_os_elementos_de_uma_colecao.rb ├── 083_nunca_mais_use_if_para_descobrir_o_menor_ou_maior_elemento_de_uma_colecao.rb ├── 084_transforme_todos_os_elementos_de_uma_colecao_com_map_ou_collect.rb ├── 085_use_reduce_inject_para_percorrer_uma_colecao_e_retornar_um_valor.rb ├── 086_pra_nao_dizer_que_nao_falamos_de_expressoes_regulares.rb ├── 087_um_pouco_sobre_modulos.rb ├── 088_inclua_modulos_nas_classes.rb ├── 089_encapsule_seus_dados_com_variaveis_de_instancia.rb ├── 090_exponha_suas_variaveis_com_attribute_accessors.rb ├── 091_uma_classe_tambem_pode_ter_variaveis.rb ├── 092_uma_forma_elegante_de_atribuir_valores.rb ├── 093_voce_pode_abrir_uma_classe_e_adicionar_novos_metodos.rb ├── 094_uma_classe_pode_ter_outra_classe_dentro_dela.rb ├── 095_uma_classe_pode_herdar_de_outra.rb ├── 096_se_anda_como_um_pato_e_se_fala_como_um_pato_entao_e_um_pato.rb ├── 097_use_os_modificadores_de_acesso_para_controlar_encapsulamento_de_metodos.rb ├── 098_use_a_palavra_super_para_invocar_o_metodo_na_classe_pai.rb ├── 099_use_defined_para_descobrir_o_que_uma_expressao_significa.rb └── 100_leia_um_arquivo_com_read.rb /001_alo_mundo.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/001_alo_mundo.rb -------------------------------------------------------------------------------- /002_top_object_main.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/002_top_object_main.rb -------------------------------------------------------------------------------- /003_expressoes_aritmeticas_sao_chamadas_de_metodos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/003_expressoes_aritmeticas_sao_chamadas_de_metodos.rb -------------------------------------------------------------------------------- /004_toda_expressao_retorna_um_valor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/004_toda_expressao_retorna_um_valor.rb -------------------------------------------------------------------------------- /005_interpolacao_de_strings.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/005_interpolacao_de_strings.rb -------------------------------------------------------------------------------- /006_metodos_predicados_terminam_em_interrogacao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/006_metodos_predicados_terminam_em_interrogacao.rb -------------------------------------------------------------------------------- /007_todo_objeto_possui_uma_identidade.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/007_todo_objeto_possui_uma_identidade.rb -------------------------------------------------------------------------------- /008_cuidado_ao_comparar_valor_e_identidade.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/008_cuidado_ao_comparar_valor_e_identidade.rb -------------------------------------------------------------------------------- /009_parenteses_sao_opcionais_quando_nao_ha_ambiguidade.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/009_parenteses_sao_opcionais_quando_nao_ha_ambiguidade.rb -------------------------------------------------------------------------------- /010_ultimo_comando_eh_o_valor_de_retorno.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/010_ultimo_comando_eh_o_valor_de_retorno.rb -------------------------------------------------------------------------------- /011_atribuicao_com_operacao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/011_atribuicao_com_operacao.rb -------------------------------------------------------------------------------- /012_atribuicao_multiplca.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/012_atribuicao_multiplca.rb -------------------------------------------------------------------------------- /013_cuidado_com_alias_de_objetos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/013_cuidado_com_alias_de_objetos.rb -------------------------------------------------------------------------------- /014_inspect_e_o_metodo_p.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/014_inspect_e_o_metodo_p.rb -------------------------------------------------------------------------------- /015_o_operador_splat_em_atribuicoes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/015_o_operador_splat_em_atribuicoes.rb -------------------------------------------------------------------------------- /016_ha_variaveis_globais_entre_nos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/016_ha_variaveis_globais_entre_nos.rb -------------------------------------------------------------------------------- /017_use_gets_para_a_entrada_padrao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/017_use_gets_para_a_entrada_padrao.rb -------------------------------------------------------------------------------- /018_chomp_nos_livra_do_incomodo_barra_n_do_gets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/018_chomp_nos_livra_do_incomodo_barra_n_do_gets.rb -------------------------------------------------------------------------------- /019_um_breve_comentario_sobre_o_protocolo_de_conversao_de_tipos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/019_um_breve_comentario_sobre_o_protocolo_de_conversao_de_tipos.rb -------------------------------------------------------------------------------- /020_um_breve_comentario_sobre_constantes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/020_um_breve_comentario_sobre_constantes.rb -------------------------------------------------------------------------------- /021_crie_blocos_de_comentarios_com_igual_begin_e_igual_end.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/021_crie_blocos_de_comentarios_com_igual_begin_e_igual_end.rb -------------------------------------------------------------------------------- /022_certifique_se_de_que_um_codigo_sempre_sera_executado_primeiro_com_BEGIN_chaves.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/022_certifique_se_de_que_um_codigo_sempre_sera_executado_primeiro_com_BEGIN_chaves.rb -------------------------------------------------------------------------------- /023_certifique_se_de_que_um_codigo_sempre_sera_executado_antes_do_programa_terminar_com_END_chaves.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/023_certifique_se_de_que_um_codigo_sempre_sera_executado_antes_do_programa_terminar_com_END_chaves.rb -------------------------------------------------------------------------------- /024_certifique_se_de_que_um_codigo_sera_executado_antes_do_programa_terminar_com_at_exit.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/024_certifique_se_de_que_um_codigo_sera_executado_antes_do_programa_terminar_com_at_exit.rb -------------------------------------------------------------------------------- /025_underline_underline_END_underline_underline_denota_fim_do_programa.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/025_underline_underline_END_underline_underline_denota_fim_do_programa.rb -------------------------------------------------------------------------------- /026_temos_blocos_de_expressoes_com_begin_e_end_mas_nao_confunda_com_blocos_do_end.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/026_temos_blocos_de_expressoes_com_begin_e_end_mas_nao_confunda_com_blocos_do_end.rb -------------------------------------------------------------------------------- /027_caso_uma_excecao_nao_seja_capturada_o_programa_termina_com_uma_mensagem_de_erro.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/027_caso_uma_excecao_nao_seja_capturada_o_programa_termina_com_uma_mensagem_de_erro.rb -------------------------------------------------------------------------------- /028_capture_uma_excecao_com_rescue.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/028_capture_uma_excecao_com_rescue.rb -------------------------------------------------------------------------------- /029_rescue_pode_ser_utilizado_dentro_de_metodos_sem_necessidade_de_begin_end.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/029_rescue_pode_ser_utilizado_dentro_de_metodos_sem_necessidade_de_begin_end.rb -------------------------------------------------------------------------------- /030_caso_nenhuma_excecao_seja_capturada_por_rescue_execute_um_codigo_alternativo_com_else.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/030_caso_nenhuma_excecao_seja_capturada_por_rescue_execute_um_codigo_alternativo_com_else.rb -------------------------------------------------------------------------------- /031_garanta_que_um_codigo_sempre_sera_executado_com_ensure.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/031_garanta_que_um_codigo_sempre_sera_executado_com_ensure.rb -------------------------------------------------------------------------------- /032_capture_todos_os_tipos_de_excecoes_com_rescue_exception.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/032_capture_todos_os_tipos_de_excecoes_com_rescue_exception.rb -------------------------------------------------------------------------------- /033_execute_novamente_o_bloco_que_causou_a_excecao_com_retry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/033_execute_novamente_o_bloco_que_causou_a_excecao_com_retry.rb -------------------------------------------------------------------------------- /034_use_rescue_apos_um_unico_comando_como_uma_especie_de_or.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/034_use_rescue_apos_um_unico_comando_como_uma_especie_de_or.rb -------------------------------------------------------------------------------- /035_lance_suas_proprias_excecoes_com_raise_ou_fail.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/035_lance_suas_proprias_excecoes_com_raise_ou_fail.rb -------------------------------------------------------------------------------- /036_um_pouco_sobre_catch_e_throw.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/036_um_pouco_sobre_catch_e_throw.rb -------------------------------------------------------------------------------- /037_use_ponto_de_interrogacao_e_dois_pontos_como_operador_ternario.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/037_use_ponto_de_interrogacao_e_dois_pontos_como_operador_ternario.rb -------------------------------------------------------------------------------- /038_unless_e_o_mesmo_que_if_not.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/038_unless_e_o_mesmo_que_if_not.rb -------------------------------------------------------------------------------- /039_use_elif_no_lugar_de_else_if.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/039_use_elif_no_lugar_de_else_if.rb -------------------------------------------------------------------------------- /040_use_a_palavra_then_para_escrever_um_if_numa_unica_linha.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/040_use_a_palavra_then_para_escrever_um_if_numa_unica_linha.rb -------------------------------------------------------------------------------- /041_guard_clause_use_if_ou_inless_apos_um_comando.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/041_guard_clause_use_if_ou_inless_apos_um_comando.rb -------------------------------------------------------------------------------- /042_use_while_para_modificar_um_bloco_begin_end_ou_um_unico_comando.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/042_use_while_para_modificar_um_bloco_begin_end_ou_um_unico_comando.rb -------------------------------------------------------------------------------- /043_use_until_para_modificar_um_bloco_begin_end_ou_um_unico_comando.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/043_use_until_para_modificar_um_bloco_begin_end_ou_um_unico_comando.rb -------------------------------------------------------------------------------- /044_cuidado_com_a_prioridade_de_alguns_operadores.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/044_cuidado_com_a_prioridade_de_alguns_operadores.rb -------------------------------------------------------------------------------- /045_use_case_when_para_escolher_entre_multiplas_condicoes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/045_use_case_when_para_escolher_entre_multiplas_condicoes.rb -------------------------------------------------------------------------------- /046_use_case_com_else_para_escolher_uma_opcao_padrao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/046_use_case_com_else_para_escolher_uma_opcao_padrao.rb -------------------------------------------------------------------------------- /047_use_case_when_then_para_expressoes_na_mesma_linha.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/047_use_case_when_then_para_expressoes_na_mesma_linha.rb -------------------------------------------------------------------------------- /048_use_case_when_para_testar_a_classe_de_seus_objetos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/048_use_case_when_para_testar_a_classe_de_seus_objetos.rb -------------------------------------------------------------------------------- /049_ruby_possui_o_comando_for_mas_voce_nao_deveria_usa_lo_nunca.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/049_ruby_possui_o_comando_for_mas_voce_nao_deveria_usa_lo_nunca.rb -------------------------------------------------------------------------------- /050_ruby_tambem_possui_o_comando_while_e_until_mas_eh_muito_raro_utiliza_los_tambem.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/050_ruby_tambem_possui_o_comando_while_e_until_mas_eh_muito_raro_utiliza_los_tambem.rb -------------------------------------------------------------------------------- /051_use_break_para_terminar_o_loop_mais_interno.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/051_use_break_para_terminar_o_loop_mais_interno.rb -------------------------------------------------------------------------------- /052_use_next_para_pular_para_o_final_do_loop_seguindo_para_a_proxima_iteracao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/052_use_next_para_pular_para_o_final_do_loop_seguindo_para_a_proxima_iteracao.rb -------------------------------------------------------------------------------- /053_use_redo_para_repetir_a_iteracao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/053_use_redo_para_repetir_a_iteracao.rb -------------------------------------------------------------------------------- /054_use_o_metodo_loop_para_loops_infinitos_ou_nao_com_estilo.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/054_use_o_metodo_loop_para_loops_infinitos_ou_nao_com_estilo.rb -------------------------------------------------------------------------------- /055_use_heredoc_para_strings_longas.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/055_use_heredoc_para_strings_longas.rb -------------------------------------------------------------------------------- /056_existem_diversas_formas_de_se_declarar_uma_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/056_existem_diversas_formas_de_se_declarar_uma_string.rb -------------------------------------------------------------------------------- /057_cuidado_com_operacoes_que_criam_novas_strings.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/057_cuidado_com_operacoes_que_criam_novas_strings.rb -------------------------------------------------------------------------------- /058_use_o_metodo_split_para_separar_uma_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/058_use_o_metodo_split_para_separar_uma_string.rb -------------------------------------------------------------------------------- /059_retorne_uma_substring_de_uma_string.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/059_retorne_uma_substring_de_uma_string.rb -------------------------------------------------------------------------------- /060_substitua_trechos_de_uma_string_com_replace_e_gsub.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/060_substitua_trechos_de_uma_string_com_replace_e_gsub.rb -------------------------------------------------------------------------------- /061_declarando_arrays_literais.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/061_declarando_arrays_literais.rb -------------------------------------------------------------------------------- /062_acessando_elementos_de_um_array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/062_acessando_elementos_de_um_array.rb -------------------------------------------------------------------------------- /063_uma_notacao_simples_para_arrays_de_strings.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/063_uma_notacao_simples_para_arrays_de_strings.rb -------------------------------------------------------------------------------- /064_conheca_o_operador_da_pa.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/064_conheca_o_operador_da_pa.rb -------------------------------------------------------------------------------- /065_com_unshift_e_pop_ja_eh_possivel_implementar_as_estruturas_de_dados_mais_basicas_como_filas_e_pilhas.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/065_com_unshift_e_pop_ja_eh_possivel_implementar_as_estruturas_de_dados_mais_basicas_como_filas_e_pilhas.rb -------------------------------------------------------------------------------- /066_use_range_para_representar_intervalos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/066_use_range_para_representar_intervalos.rb -------------------------------------------------------------------------------- /067_use_range_para_gerar_rapidamente_arrays.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/067_use_range_para_gerar_rapidamente_arrays.rb -------------------------------------------------------------------------------- /068_declarando_hashes_literais.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/068_declarando_hashes_literais.rb -------------------------------------------------------------------------------- /069_use_fetch_para_retornar_um_valor_default_quando_a_chave_nao_existir.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/069_use_fetch_para_retornar_um_valor_default_quando_a_chave_nao_existir.rb -------------------------------------------------------------------------------- /070_vamos_usar_o_valor_padrao_definido_no_construtor_de_uma_hash_para_calcular_fibonacci_de_uma_forma_interessante.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/070_vamos_usar_o_valor_padrao_definido_no_construtor_de_uma_hash_para_calcular_fibonacci_de_uma_forma_interessante.rb -------------------------------------------------------------------------------- /071_gerencie_valores_default_de_argumentos_com_merge.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/071_gerencie_valores_default_de_argumentos_com_merge.rb -------------------------------------------------------------------------------- /072_use_open_struct_para_uma_estrutura_de_dados_intermediaria_entre_uma_hash_e_uma_classe.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/072_use_open_struct_para_uma_estrutura_de_dados_intermediaria_entre_uma_hash_e_uma_classe.rb -------------------------------------------------------------------------------- /073_uma_pequena_introducao_a_blocos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/073_uma_pequena_introducao_a_blocos.rb -------------------------------------------------------------------------------- /074_blocos_podem_receber_argumentos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/074_blocos_podem_receber_argumentos.rb -------------------------------------------------------------------------------- /075_verifique_se_um_bloco_foi_passado_para_um_metodo_com_block_given.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/075_verifique_se_um_bloco_foi_passado_para_um_metodo_com_block_given.rb -------------------------------------------------------------------------------- /076_capture_um_bloco_com_ampersand.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/076_capture_um_bloco_com_ampersand.rb -------------------------------------------------------------------------------- /077_um_bloco_e_armazenado_como_um_proc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/077_um_bloco_e_armazenado_como_um_proc.rb -------------------------------------------------------------------------------- /078_lambdas_verificam_numero_de_parametros_e_return_termina_sua_execução.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/078_lambdas_verificam_numero_de_parametros_e_return_termina_sua_execução.rb -------------------------------------------------------------------------------- /079_blocos_estimulam_uma_filosofia_passe_para_a_frente.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/079_blocos_estimulam_uma_filosofia_passe_para_a_frente.rb -------------------------------------------------------------------------------- /080_ruby_possui_enumeradores.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/080_ruby_possui_enumeradores.rb -------------------------------------------------------------------------------- /081_voce_pode_usar_um_enumerador_para_gerar_numeros_de_fibonacci.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/081_voce_pode_usar_um_enumerador_para_gerar_numeros_de_fibonacci.rb -------------------------------------------------------------------------------- /082_o_metodo_each_percorre_todos_os_elementos_de_uma_colecao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/082_o_metodo_each_percorre_todos_os_elementos_de_uma_colecao.rb -------------------------------------------------------------------------------- /083_nunca_mais_use_if_para_descobrir_o_menor_ou_maior_elemento_de_uma_colecao.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/083_nunca_mais_use_if_para_descobrir_o_menor_ou_maior_elemento_de_uma_colecao.rb -------------------------------------------------------------------------------- /084_transforme_todos_os_elementos_de_uma_colecao_com_map_ou_collect.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/084_transforme_todos_os_elementos_de_uma_colecao_com_map_ou_collect.rb -------------------------------------------------------------------------------- /085_use_reduce_inject_para_percorrer_uma_colecao_e_retornar_um_valor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/085_use_reduce_inject_para_percorrer_uma_colecao_e_retornar_um_valor.rb -------------------------------------------------------------------------------- /086_pra_nao_dizer_que_nao_falamos_de_expressoes_regulares.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/086_pra_nao_dizer_que_nao_falamos_de_expressoes_regulares.rb -------------------------------------------------------------------------------- /087_um_pouco_sobre_modulos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/087_um_pouco_sobre_modulos.rb -------------------------------------------------------------------------------- /088_inclua_modulos_nas_classes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/088_inclua_modulos_nas_classes.rb -------------------------------------------------------------------------------- /089_encapsule_seus_dados_com_variaveis_de_instancia.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/089_encapsule_seus_dados_com_variaveis_de_instancia.rb -------------------------------------------------------------------------------- /090_exponha_suas_variaveis_com_attribute_accessors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/090_exponha_suas_variaveis_com_attribute_accessors.rb -------------------------------------------------------------------------------- /091_uma_classe_tambem_pode_ter_variaveis.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/091_uma_classe_tambem_pode_ter_variaveis.rb -------------------------------------------------------------------------------- /092_uma_forma_elegante_de_atribuir_valores.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/092_uma_forma_elegante_de_atribuir_valores.rb -------------------------------------------------------------------------------- /093_voce_pode_abrir_uma_classe_e_adicionar_novos_metodos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/093_voce_pode_abrir_uma_classe_e_adicionar_novos_metodos.rb -------------------------------------------------------------------------------- /094_uma_classe_pode_ter_outra_classe_dentro_dela.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/094_uma_classe_pode_ter_outra_classe_dentro_dela.rb -------------------------------------------------------------------------------- /095_uma_classe_pode_herdar_de_outra.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/095_uma_classe_pode_herdar_de_outra.rb -------------------------------------------------------------------------------- /096_se_anda_como_um_pato_e_se_fala_como_um_pato_entao_e_um_pato.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/096_se_anda_como_um_pato_e_se_fala_como_um_pato_entao_e_um_pato.rb -------------------------------------------------------------------------------- /097_use_os_modificadores_de_acesso_para_controlar_encapsulamento_de_metodos.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/097_use_os_modificadores_de_acesso_para_controlar_encapsulamento_de_metodos.rb -------------------------------------------------------------------------------- /098_use_a_palavra_super_para_invocar_o_metodo_na_classe_pai.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/098_use_a_palavra_super_para_invocar_o_metodo_na_classe_pai.rb -------------------------------------------------------------------------------- /099_use_defined_para_descobrir_o_que_uma_expressao_significa.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/099_use_defined_para_descobrir_o_que_uma_expressao_significa.rb -------------------------------------------------------------------------------- /100_leia_um_arquivo_com_read.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/everaldo/ruby-em-100-exemplos/HEAD/100_leia_um_arquivo_com_read.rb --------------------------------------------------------------------------------