Class: Sfp::Helper::SchemaCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/nuri/master.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSchemaCollector

Returns a new instance of SchemaCollector.



747
748
749
# File 'lib/nuri/master.rb', line 747

def initialize
	@schemata = []
end

Instance Attribute Details

#schemataObject (readonly)

Returns the value of attribute schemata.



746
747
748
# File 'lib/nuri/master.rb', line 746

def schemata
  @schemata
end

Instance Method Details

#visit(name, value, parent) ⇒ Object



751
752
753
754
755
756
# File 'lib/nuri/master.rb', line 751

def visit(name, value, parent)
	if value.is_a?(Hash) and value.has_key?('_classes')
		value['_classes'].each { |s| @schemata << s }
	end
	true
end