Class: Doodle

Inherits:
Object
  • Object
show all
Includes:
Core
Defined in:
lib/doodle.rb,
lib/doodle.rb,
lib/doodle/version.rb,
lib/doodle/datatypes.rb

Overview

note: this doesn’t have to be in Doodle namespace

Direct Known Subclasses

DoodleAttribute

Defined Under Namespace

Modules: BaseMethods, BuiltIns, Core, DataTypes, Debug, Embrace, Factory, SelfClass, SmokeAndMirrors, Utils, VERSION Classes: AppendableAttribute, AttributeCollector, Base, ConversionError, DataTypeHolder, DeferredBlock, DoodleAttribute, DoodleInfo, InvalidOrderError, KeyedAttribute, NoDefaultError, UnknownAttributeError, Validation, ValidationError

Constant Summary collapse

Helper =

deprecated

Core
@@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)



30
31
32
# File 'lib/doodle.rb', line 30

def context
  Thread.current[:doodle_context] ||= []
end

.raise_exception_on_errorObject



82
83
84
# File 'lib/doodle.rb', line 82

def self.raise_exception_on_error
  @@raise_exception_on_error
end

.raise_exception_on_error=(tf) ⇒ Object



85
86
87
# File 'lib/doodle.rb', line 85

def self.raise_exception_on_error=(tf)
  @@raise_exception_on_error = tf
end