{"id":15529502,"url":"https://github.com/zonuexe/ruby-io-access_lazy","last_synced_at":"2025-04-12T17:54:13.538Z","repository":{"id":7348367,"uuid":"8672242","full_name":"zonuexe/ruby-io-access_lazy","owner":"zonuexe","description":"This gem provide lazy access method like array to IO object.","archived":false,"fork":false,"pushed_at":"2013-03-10T15:58:02.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T03:46:40.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/io-access_lazy","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zonuexe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-09T16:19:16.000Z","updated_at":"2014-03-24T08:26:22.000Z","dependencies_parsed_at":"2022-08-20T23:10:11.514Z","dependency_job_id":null,"html_url":"https://github.com/zonuexe/ruby-io-access_lazy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonuexe%2Fruby-io-access_lazy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonuexe%2Fruby-io-access_lazy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonuexe%2Fruby-io-access_lazy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonuexe%2Fruby-io-access_lazy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zonuexe","download_url":"https://codeload.github.com/zonuexe/ruby-io-access_lazy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248610408,"owners_count":21132920,"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":[],"created_at":"2024-10-02T11:18:38.165Z","updated_at":"2025-04-12T17:54:13.512Z","avatar_url":"https://github.com/zonuexe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IO::AccessLazy\n\n * \u003cdel\u003eさいふおとした。\u003cstrong\u003e泣いてる\u003c/strong\u003e。\u003c/del\u003e\n * \u003cins\u003e回収されたらしい。世の中捨てたもんじゃない ヾ(〃＞＜)ﾉﾞ☆\u003c/ins\u003e\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'io-access_lazy'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install io-access_lazy\n\n## 日本語でおｋ (Japanese)\n\n * IOオブジェクトから任意の行を遅延して取得します\n * シェルスクリプティングだと `head(1)` とか `tail(1)` を使ってやるイメージです\n   * **タブンネ**\n\n## Usage\n\n```ruby\nfp = open(\"hoge.txt\", 'r')\nfp.read\n# =\u003e \"A\n# B\n# C\n# D\n# E\n# F\n# G\n# H\"\nfp_lazy = IO::AccessLazy.new(fp)\nline5 = fp_lazy[5]\n# =\u003e \"F\"\nline2_6 = fp_lazy[2..4]\n# =\u003e [\"C\\n\", \"D\\n\", \"E\\n\"]\nline3_l = fp_lazy[3..-1]\n# =\u003e [\"D\\n\", \"E\\n\", \"F\\n\", \"G\\n\", \"H\\n\"]\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonuexe%2Fruby-io-access_lazy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzonuexe%2Fruby-io-access_lazy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonuexe%2Fruby-io-access_lazy/lists"}