Tricks
The majority of these Ruby Tricks were extracted from James Edward Gray II talk.
- Alphanumeric incrementing
- Associative arrays
- At exit method
- Autovivification
- Blocks can take blocks
- Bubbling up thread errors
- Case on ranges
- Count all objects
- Cycle
- Data
- Easiest database pstore
- Easiest database pstore yaml
- Enable garbage collector profiler
- Enable ruby warnings
- Fast memoization fibonacci
- Fetch data
- Get random data
- Head tail
- Inject
- Inspecting the source with script lines
- Iterating over specific types
- Lambda your own syntax
- Memoization
- Print formatted with debug
- Ruby debug flag
- Shortcut variable interpolation
- Single instance running
- Smalltalk conditionals
- Splat operator
- Stab operator
- Struct without assignment
- Super magic keyword
- Super magic keyword2
- Super magic keyword3
- Super magic keyword4
- Super magic keyword5
- Tail call
- Trigger irb as needed
- Unfreeze objects with fiddle
- Unused variable format
- Variables from a regex
- Zip
- Introspecting Block Parameters