title | description | published | date | tags | editor | dateCreated |
---|---|---|---|---|---|---|
ruby |
true |
2023-07-22 17:43:52 UTC |
markdown |
2023-07-22 17:43:49 UTC |
Related: Sketchup + Ruby | VS Code | WSL
- https://rubydoc.info
- https://rubyapi.org/
- https://ruby-doc.org/
- https://devdocs.io/ruby~2.7/
- Ruby style guide
- Generating local copies of docs
- Ruby 1.9 Keywords
- Pry - Pry is a runtime developer console and IRB alternative with powerful introspection capabilities
- Minitest
- [RSpec]
- Ruby Debugger
- Rake
- Builder - XML builder
- BlankSlate - extracted from Builder, made into a standalone gem (may be)
- REST Client - simple DSL for accessing HTTP and REST resources
- docs- Modules & Classes (2.7.2)
- Quick Ref at zenspider
- Free course- Ruby API Design with Jim Weirich
- Videos- Scotland on Rails Conference- 27 videos
- Video- The Ruby Object Model by Dave Thomas
- Article- Avdi Grimm - Do We Need Constants
- Video- Mastering the Ruby Debugger (Jim Weirich) - more of an overview of debugging methods
- Article- Encapsulation - GeeksforGeeks
- Article- Weird Ruby series
- Article - How to make your Ruby code work on Windows PCs (Avdi Grimm)
- Ruby Programming Wikibook
- website & blog- Dave Thomas
- blog- one, step, back (Weirich) - Jim Weirich's archived blog
- zen spider
- blog- honeybadger
- blog- Vaidehi: Words & Code
- blog- Leigh Halliday
- See setup log in WSL.md
BasicObject
Class
#superclass
Method
#inspect
#name
#original_name
#owner
#parameters
#receiver
#source_location
#super_method
Module
#ancestors
#included_modules
#inspect
#nesting
Object
#class
#inspect
#instance_variables
#instance_variable_defined?
args: (symbol) or (string)#methods
#respond_to?
*
- splat / star -<=>
- operator: combined comparisonProc
lambda
Struct
- class constructorsuper
- e.g. good practice when inheriting from a class, to use in
initialize
to inherit the parent'sinitialize
- e.g. good practice when inheriting from a class, to use in
#inject
#map
&
shortcutmethod
#dup
#clone
#==
#equal?
or#eql?
class_eval
begin / end
- Way of defining a bunch of code that needs to run on it’s own, in its own context... Whatever is the last expression that is evaluated in the begin end block is the result that will be returned..rescue
ensure
||=
#method_missing
Exception
- article- singleton / eigenclass
- Golden Rule of metaprogramming (dave thomas):
- Instance variables: look up in self
- Methods: look up in self's class
- Module:
ObjectSpace