Class | FieldedArray |
In: |
lib/arrayfields.rb
|
Parent: | Object |
proxy class that allows an array to be wrapped in a way that still allows # keyword access. also facilitate usage of ArrayFields with arraylike objects. thnx to Sean O‘Dell for the suggestion.
sample usage
fa = FieldedArray.new %w(zero one two), [0,1,2] p fa[‘zero’] #=> 0