{"id":20355470,"url":"https://github.com/dcoxall/learn-ruby","last_synced_at":"2026-03-05T20:42:54.956Z","repository":{"id":10779862,"uuid":"13046785","full_name":"dcoxall/learn-ruby","owner":"dcoxall","description":"A collection of helpful guides, tutorials and tips for learning to code using Ruby","archived":false,"fork":false,"pushed_at":"2013-09-25T16:04:46.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-26T13:28:57.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cowboyd/handlebars.rb","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcoxall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-23T20:50:43.000Z","updated_at":"2014-09-13T21:18:29.000Z","dependencies_parsed_at":"2022-09-11T16:01:37.718Z","dependency_job_id":null,"html_url":"https://github.com/dcoxall/learn-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcoxall/learn-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoxall%2Flearn-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoxall%2Flearn-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoxall%2Flearn-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoxall%2Flearn-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcoxall","download_url":"https://codeload.github.com/dcoxall/learn-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcoxall%2Flearn-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30149821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T16:58:46.102Z","status":"ssl_error","status_checked_at":"2026-03-05T16:58:45.706Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T23:12:58.640Z","updated_at":"2026-03-05T20:42:54.912Z","avatar_url":"https://github.com/dcoxall.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning Ruby\nI've began compiling a collection of guides and lessons to help people learn how to program ruby. To get the most out of them however there are some tips.\n\n## Formatting\nHonestly, code is much easier to read and understand if you format your work correctly. The standard style for ruby is to indent nested code by 2 spaces. Try to follow this rule as it keeps things easy to follow.\n\n```ruby\ndef method_name # not indented\n  # example code, indented by 2 spaces\n  # more code,    indented by 2 spaces\nend             # not indented\n```\n\nIn many of the examples you will see a `#` symbol. In ruby this is a comment. It means whatever on that line following the symbol is ignored but visible for us to see. It makes it easy to document within the code. I use a convention of using `# =\u003e value` to indicate what is returned by a particular line. To better see what I mean follow the instructions below.\n\n## Testing the examples\nAll the code examples should work if followed correctly. In order to run the code yourself do the following:\n\n1. Make sure you have ruby installed.\n2. Create a file and make sure it has the `.rb` extension.\n3. Put/type the code into the file. \n4. Save it!\n\nNow you can run the following command in either a terminal or command prompt:\n\n```bash\nruby path/to/example.rb\n```\n\nIf you wish to output a result from some of the code simply append the line with `puts`. An example of this:\n\n```ruby\nexample_one = 2       # not output\nputs example_one * 2  # outputs 4\n```\n\n## Struggling to understand an example or lesson\nPlease post an issue on github explaining the difficulties you had. I will do my best to help.\n\n## Contributing\nThis collection of guides, advice and lessons are intended to be free and open source. They should be available to anyone and therefore contributions are also welcome. Submit a pull request and I will gladly accept well written, working guides.\n\n## License\nIn order to ensure that this guide remains free it is licensed under GPLv2. Any duplicates or references should also refer back to the original (https://github.com/FreakyDazio/learn-ruby).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcoxall%2Flearn-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcoxall%2Flearn-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcoxall%2Flearn-ruby/lists"}