Module: Ron

Defined in:
lib/ron/graphedge.rb,
lib/ron.rb,
lib/ron/version.rb

Overview

require ‘assert’

Defined Under Namespace

Modules: GraphWalk Classes: GraphEdge, GraphTrace, NotSerializeableError, NotYetMaybeNeverSerializeableError, NotYetSerializeableError, Session

Constant Summary collapse

IGNORED_INSTANCE_VARIABLES =
Hash.new{[]}
DefaultMarker =
{}.freeze
VERSION =
"0.1.2"
@@local_names_generated =
0

Class Method Summary collapse

Class Method Details

.dump(obj) ⇒ Object



38
39
40
# File 'lib/ron.rb', line 38

def self.dump obj
  obj.to_ron
end

.extension_modules_of(obj) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/ron.rb', line 46

def self.extension_modules_of(obj)
  ancs=class<<obj; ancestors end
  ancs=ancs[0...ancs.index(obj.class)]
  return ancs
rescue TypeError
  return []
end

.gen_local_nameObject



34
35
36
# File 'lib/ron.rb', line 34

def Ron.gen_local_name
  "v#{@@local_names_generated+=1}_"
end

.load(str) ⇒ Object



42
43
44
# File 'lib/ron.rb', line 42

def self.load str
  eval str
end

.Recursive(*args) ⇒ Object



139
# File 'lib/ron.rb', line 139

def Ron.Recursive(*args); super end