This is an easy way to create Struct-like classes; it converts easily between hashes and arrays, and it allows OpenStruct-like dynamic naming of members.
Unlike Struct, it creates a "real" class, and it has real instance variables with predictable names.
A basic limitation is that the hash keys must be legal method names (unless used with send()).
Basically, ss["alpha"], ss[:alpha], ss[0], and ss.alpha all mean the same.
Usage
TODO
Author(s)
- Hal Fulton
Methods
Public Class methods
new(*args)
[ source ]
open(*args)
[ source ]