{"id":15399432,"url":"https://github.com/raviqqe/block-is-array","last_synced_at":"2025-10-30T22:06:45.603Z","repository":{"id":59151166,"uuid":"71682930","full_name":"raviqqe/block-is-array","owner":"raviqqe","description":"Block is Array (See also https://github.com/raviqqe/block-is-hash)","archived":false,"fork":false,"pushed_at":"2016-10-23T06:14:28.000Z","size":27,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-02T01:07:25.672Z","etag":null,"topics":["metaprogramming","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raviqqe.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":"2016-10-23T05:06:50.000Z","updated_at":"2023-12-11T16:25:54.000Z","dependencies_parsed_at":"2022-09-13T11:00:38.420Z","dependency_job_id":null,"html_url":"https://github.com/raviqqe/block-is-array","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/raviqqe%2Fblock-is-array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raviqqe%2Fblock-is-array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raviqqe","download_url":"https://codeload.github.com/raviqqe/block-is-array/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249040054,"owners_count":21202815,"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":["metaprogramming","ruby"],"created_at":"2024-10-01T15:48:47.273Z","updated_at":"2025-10-30T22:06:40.571Z","avatar_url":"https://github.com/raviqqe.png","language":"Ruby","readme":"# block-is-array\n\n[![Build Status](https://travis-ci.org/raviqqe/block-is-array.svg?branch=master)](https://travis-ci.org/raviqqe/block-is-array)\n[![License](https://img.shields.io/badge/license-unlicense-lightgray.svg)](https://unlicense.org)\n\nBlock is Array\n\n## Installation\n\n```\n$ gem install block-is-array\n```\n\n## Usage\n\nCode:\n\n```ruby\nrequire 'block-is-array'\n\narray = block_is_array do\n  user :www\n\n  http do\n    server do\n      listen 80\n      server_name 'foo.com'\n    end\n\n    server do\n      listen 443, :ssl\n      server_name 'bar.com'\n    end\n  end\nend\n\np array\n```\n\nOutput:\n\n```ruby\n[[:user, :www], [:http, [[:server, [[:listen, 80], [:server_name, \"foo.com\"]]], [:server, [[:listen, 443, :ssl], [:server_name, \"bar.com\"]]]]]]\n```\n\nFor more examples, see [examples](examples) directory.\n\n## License\n\n[The Unlicense](https://unlicense.org)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviqqe%2Fblock-is-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraviqqe%2Fblock-is-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraviqqe%2Fblock-is-array/lists"}