class Object
Constants
- Arrayfields
The ArrayFields module implements methods which allow an Array to be indexed by String or Symbol. It is not required to manually use this module to extend Arrays - they are auto-extended on a per-object basis when Fieldable#fields= is called
- Fieldedarray
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 #=> 0
- Pseudohash
Public Instance Methods
Arrayfields(*a, &b)
click to toggle source
# File lib/arrayfields.rb, line 290 def Arrayfields(*a, &b) Arrayfields.new(*a, &b) end