Project

hashd

0.0
No commit activity in last 3 years
No release in over 3 years
Give any hash dot syntax. Supports nested properties, mutates original hash.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
 Project Readme

Hashd

Makes your hashes have dot syntax. Mutates the original hash.

Installation

gem install hashd

Usage

h = {:world => 'flat'}

# Init using the to_dot method
h.to_dot
t.world => 'flat'

# Assignment works as well
t.horizon = 'alsoflat'
t.horizon => 'flat'

Note: Don't use hash method names as hash keys.

This library is actively maintained by Fugroup Ltd. We are the creators of CrowdfundHQ.

Thanks!

@authors: Vidar