Project

habject

0.0
No commit activity in last 3 years
No release in over 3 years
Add object type notation to ruby hash.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 2.6
 Project Readme

HABJECT

Habject gives you object flavor syntax on ruby Hash.

Installation

Install it with rubygems:

gem install habject

With bundler, add it to your Gemfile:

gem "habject", "~>0.1"

Usage

Let's say we have this hash :

user = {'name' => 'chatgris'}

Habject gives you the possibility to call 'name' on 'user' :

user.name
# => "chatgris"

And also respond_to on user

user.respond_to? :name
# => true

Copyright

See LICENSE for further details.