Class: AltStruct

Inherits:
Object
  • Object
show all
Includes:
Behavior
Defined in:
lib/astruct.rb,
lib/astruct/version.rb,
lib/astruct/behavior.rb

Overview

astruct.rb: AltStruct implementation

Author

Kurtis Rainbolt-Greene

Documentation

Kurtis Rainbolt-Greene

AltStruct is an Class and Module (AltStruct::M) that can be used to create hash-like classes. Allowing you to create an object that can dynamically accept accessors and behaves very much like a Hash.

Defined Under Namespace

Modules: Behavior

Constant Summary collapse

VERSION =
"3.0.0"

Constants included from Behavior

Behavior::INSPECT_DELIMITER, Behavior::NESTED_INSPECT, Behavior::SUFFIX_PATTERN, Behavior::THREAD_KEY, Behavior::UNSETABLE_PATTERN, Behavior::WRAP_PATTERN

Instance Attribute Summary

Attributes included from Behavior

#table

Method Summary

Methods included from Behavior

#==, #__delete__, #__dump__, #__inspect__, #__load__, #__load__!, #freeze, #initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AltStruct::Behavior