Popularity
0.6
Stable
Activity
0.0
Stable
6
3
1

Monthly Downloads: 68
Programming language: Ruby
License: The Unlicense
Tags: Hash     Hashes     Data Structures     Lisp     Extensions    

block-is-hash alternatives and similar gems

Based on the "Data Structures" category.
Alternatively, view block-is-hash alternatives based on common mentions on social networks and blogs.

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

Add another 'Data Structures' Gem

README

block-is-hash

Build Status License

Block is Hash

Installation

$ gem install block-is-hash

Usage

Code:

require 'block-is-hash'

hash = block_is_hash %i(server) do # `server` directive can be repeated.
  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 hash

Output:

{:user=>:www, :http=>{:server=>[{:listen=>80, :server_name=>"foo.com"}, {: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-hash README section above are relevant to that project's source code only.