Class: Doodle

Inherits:
Object
  • Object
show all
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

App, DoodleAttribute, XML::Document

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

Methods included from Core

included

Class Method Details

.contextObject

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

.parentObject



44
45
46
# File 'lib/doodle.rb', line 44

def parent
  context[-1]
end

.raise_exception_on_errorObject



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