Popularity
0.7
Growing
Activity
0.0
Stable
16
2
0

Monthly Downloads: 5
Programming language: Ruby
License: The Unlicense
Tags: Core Extensions     Array     Data Structures     Lisp    

block-is-array alternatives and similar gems

Based on the "Data Structures" category

Do you think we are missing an alternative of block-is-array or a related project?

Add another 'Data Structures' Gem

README

block-is-array

Build Status License

Block is Array

Installation

$ gem install block-is-array

Usage

Code:

require 'block-is-array'

array = block_is_array do
  user :www

  http do
    server do
      listen 80
      server_name 'foo.com'
    end

    server do
      listen 443, :ssl
      server_name 'bar.com'
    end
  end
end

p array

Output:

[[:user, :www], [:http, [[:server, [[:listen, 80], [:server_name, "foo.com"]]], [:server, [[:listen, 443, :ssl], [:server_name, "bar.com"]]]]]]

For more examples, see [examples](examples) directory.

License

The Unlicense


*Note that all licence references and agreements mentioned in the block-is-array README section above are relevant to that project's source code only.