Class: Doodle
- Inherits:
-
Object
- Object
- Doodle
- Includes:
- Core
- Defined in:
- lib/doodle.rb,
lib/doodle.rb,
lib/doodle.rb,
lib/doodle/app.rb,
lib/doodle/xml.rb,
lib/doodle/version.rb,
lib/doodle/datatypes.rb,
lib/molic_orderedhash.rb
Overview
AUTHOR
jan molic /mig/at/1984/dot/cz/
DESCRIPTION
Hash with preserved order and some array-like extensions
Public domain.
THANKS
Andrew Johnson for his suggestions and fixes of Hash[],
merge, to_a, inspect and shift
Direct Known Subclasses
Defined Under Namespace
Modules: BaseMethods, BuiltIns, Comparable, Core, DataTypes, Debug, Embrace, Equality, EscapeXML, Factory, SelfClass, SmokeAndMirrors, Utils, VERSION, XML Classes: App, AppendableAttribute, AttributeCollector, ConversionError, DataTypeHolder, DeferredBlock, DoodleAttribute, DoodleInfo, InvalidOrderError, KeyedAttribute, NoDefaultError, OrderedHash, ReadOnlyError, UnknownAttributeError, Validation, ValidationError
Constant Summary collapse
- @@raise_exception_on_error =
error handling
true
Class Method Summary collapse
-
.context ⇒ Object
provide somewhere to hold thread-specific context information (I’m claiming the :doodle_xxx namespace).
- .parent ⇒ Object
- .raise_exception_on_error ⇒ Object
- .raise_exception_on_error=(tf) ⇒ Object
Methods included from Core
Class Method Details
.context ⇒ Object
provide somewhere to hold thread-specific context information (I’m claiming the :doodle_xxx namespace)
41 42 43 |
# File 'lib/doodle.rb', line 41 def context Thread.current[:doodle_context] ||= [] end |
.parent ⇒ Object
44 45 46 |
# File 'lib/doodle.rb', line 44 def parent context[-1] end |
.raise_exception_on_error ⇒ Object
200 201 202 |
# File 'lib/doodle.rb', line 200 def self.raise_exception_on_error @@raise_exception_on_error end |
.raise_exception_on_error=(tf) ⇒ Object
203 204 205 |
# File 'lib/doodle.rb', line 203 def self.raise_exception_on_error=(tf) @@raise_exception_on_error = tf end |