# ruby-tricks **Repository Path**: mirrors_sirupsen/ruby-tricks ## Basic Information - **Project Name**: ruby-tricks - **Description**: Ruby Tricks - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2025-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ruby-tricks The most part of those Ruby Tricks were extracted from James Edward Gray II [talk](https://www.youtube.com/watch?v=aBgnlBoIkVM). If you know some other ruby-trick, please contribute! ### [Associative Arrays](associative_arrays.rb) ### [Autovivification](autovivification.rb) ### [Blocks can take blocks](blocks_can_take_blocks.rb) ### [Bubbling up thread errors](bubbling_up_thread_errors.rb) ### [Case on ranges](case_on_ranges.rb) ### [Count all objects](count_all_objects.rb) ### [Cycle](cycle.rb) ### [DATA](data.rb) ### [Easiest Database store](easiest_database_pstore.rb) ### [Easiest Database Pstore using yams](easiest_database_pstore_yaml.rb) ### [Enable ruby warnings](enable_ruby_warnings.rb) ### [Fast memoization - fibonacci](fast_memoization_fibonacci.rb) ### [Fetch data](fetch_data.rb) ### [Get Random Data](get_random_data.rb) ### [Inject](inject.rb) ### [Inspecting the source with script lines](inspecting_the_source_with_script_lines.rb) ### [Iterating over specific types](iterating_over_specific_types.rb) ### [Lambda your own syntax](lambda_your_own_syntax.rb) ### [Print formatted with debug](print_formatted_with_debug.rb) ### [Ruby can even explain it to you](ruby_can_even_explain_it_to_you.txt) ### [Ruby debug flag](ruby_debug_flag.rb) ### [Shortcut variable interpolation](shortcut_variable_interpolation.rb) ### [Single instance running](single_instance_running.rb) ### [Struct without assignment](struct_without_assignment.rb) ### [Super Magic keyword](super_magic_key_word.rb) ### [Super Magic keyword 2](super_magic_key_word2.rb) ### [Super Magic keyword 3](super_magic_key_word3.rb) ### [Super Magic keyword 4](super_magic_key_word4.rb) ### [Super Magic keyword 5](super_magic_key_word5.rb) ### [Tail Call](tail_call.rb) ### [Trigger IRB as needed](trigger_irb_as_needed.rb) ### [Turn on garbage collector](turn_on_garbage_collector.rb) ### [Unused variable format](unused_variable_format.rb) ### [Variables from a regex](variables_from_a_regex.rb) ### [Zip](zip.rb) ## Contributing 1. Fork it 2. Create your trick branch: `git checkout -b my-ruby-trick` 3. Commit your changes: `git commit -am 'Add trick'` 4. Push to the branch: `git push origin my-new-trick` 5. Create new Pull Request and explain a little bit about your ruby trick