Class: Unschema::SchemaIntermediator

Inherits:
Object
  • Object
show all
Defined in:
lib/unschema/schema_intermediator.rb

Defined Under Namespace

Classes: Call

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/unschema/schema_intermediator.rb', line 3

def version
  @version
end

Instance Method Details

#callsObject



11
12
13
# File 'lib/unschema/schema_intermediator.rb', line 11

def calls
  @root.calls
end

#process(options, &block) ⇒ Object



5
6
7
8
9
# File 'lib/unschema/schema_intermediator.rb', line 5

def process(options, &block)
  @version = options[:version] || 0
  @root = Call.new(:root, options)
  @root.instance_eval(&block)
end