{"id":21389349,"url":"https://github.com/isaced/swiftrubystyle","last_synced_at":"2025-03-16T12:46:19.651Z","repository":{"id":70075723,"uuid":"165845126","full_name":"isaced/SwiftRubyStyle","owner":"isaced","description":"Write Ruby style code in Swift.","archived":false,"fork":false,"pushed_at":"2019-01-16T02:27:48.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T00:29:39.538Z","etag":null,"topics":["ruby-syntax","swift-extension"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/isaced.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-15T12:12:51.000Z","updated_at":"2023-03-17T12:14:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b0245f7-128b-4d5b-b857-b4c00a9cb8d4","html_url":"https://github.com/isaced/SwiftRubyStyle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FSwiftRubyStyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FSwiftRubyStyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FSwiftRubyStyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isaced%2FSwiftRubyStyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isaced","download_url":"https://codeload.github.com/isaced/SwiftRubyStyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871650,"owners_count":20361378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ruby-syntax","swift-extension"],"created_at":"2024-11-22T12:26:04.801Z","updated_at":"2025-03-16T12:46:19.630Z","avatar_url":"https://github.com/isaced.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftRubyStyle\nWrite Ruby style code in Swift.\n\n## puts\n\n```swift\nputs(\"hello\") // hello\n```\n\n## times\n\n```swift\n\n3.times {\n    puts(\"hi\")\n}\n\n// hi\n// hi\n// hi\n\n// or\n5.times { i in\n    puts(i)\n}\n\n// 0\n// 1\n// 2\n// 3\n// 4\n```\n\n## String\n\n```swift\n// count\n[\"a\"].count           // 1\n[\"a\",\"b\"].size        // 2\n[\"a\",\"b\",\"c\"].length  // 3\n\n// append\n\"hello \" \u003c\u003c \"world\"   // hello world\n\n// *\n\"a \" * 3              // a a a\n```\n\n## Array\n\n```swift\n// Hello\n// Swift\n// Ruby\n\n// *n\n[\"a\"] * 3             // a a a\n[\"A\", \"B\"] + [\"C\"]    // A B C\n```\n\n## Dictionary\n\n```swift\n// each\n_ = [\"A\": \"Hello A\", \"B\": \"Hello B\"].each { (k, v) in\n    puts(k)\n    puts(v)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaced%2Fswiftrubystyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisaced%2Fswiftrubystyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisaced%2Fswiftrubystyle/lists"}