Skip to content

simonmaddox/ruby-keyvaluecoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

keyvaluecoding

After enjoying Key Value Coding in Objective C, I wanted something similar in Ruby. So here's my implementation. It's very basic right now, but does what I need.

To Install

gem install keyvaluecoding

To Use

require 'keyvaluecoding'

person = {"name" => "Simon Maddox", "websites" => { "github" => "http://github.com/simonmaddox", "twitter" => "http://twitter.com/simonmaddox"} }
puts person['name'] # Simon Maddox
puts person.value_for_key_path("websites.github") # http://github.com/simonmaddox

About

Simple Key Value Coding in Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages