class Sfp::Helper::SchemaCollector

Attributes

schemata[R]

Public Class Methods

new() click to toggle source
# File lib/sfpagent/helper.rb, line 97
def initialize
        @schemata = []
end

Public Instance Methods

visit(name, value, parent) click to toggle source
# File lib/sfpagent/helper.rb, line 101
def visit(name, value, parent)
        if value.is_a?(Hash) and value.has_key?('_classes')
                value['_classes'].each { |s| @schemata << s }
        end
        true
end