Class: Sfp::Helper::SchemaCollector
- Inherits:
-
Object
- Object
- Sfp::Helper::SchemaCollector
- Defined in:
- lib/nuri/master.rb
Instance Attribute Summary collapse
-
#schemata ⇒ Object
readonly
Returns the value of attribute schemata.
Instance Method Summary collapse
-
#initialize ⇒ SchemaCollector
constructor
A new instance of SchemaCollector.
- #visit(name, value, parent) ⇒ Object
Constructor Details
#initialize ⇒ SchemaCollector
Returns a new instance of SchemaCollector.
747 748 749 |
# File 'lib/nuri/master.rb', line 747 def initialize @schemata = [] end |
Instance Attribute Details
#schemata ⇒ Object (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 |