Class: Schemacop::V3::SymbolNode
- Defined in:
- lib/schemacop/v3/symbol_node.rb
Instance Attribute Summary
Attributes inherited from Node
#as, #default, #description, #name, #options, #parent, #title
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Node
#cast, #children, #create, create, dsl_methods, #dsl_node, #dsl_scm, #init, #initialize, #required?, resolve_class, #schemas, supports_children, supports_children_options, #used_external_schemas, #validate
Constructor Details
This class inherits a constructor from Schemacop::V3::Node
Class Method Details
.allowed_options ⇒ Object
12 13 14 |
# File 'lib/schemacop/v3/symbol_node.rb', line 12 def self. super + %i[cast_str] end |
Instance Method Details
#allowed_types ⇒ Object
8 9 10 |
# File 'lib/schemacop/v3/symbol_node.rb', line 8 def allowed_types { Symbol => 'Symbol' } end |
#as_json ⇒ Object
4 5 6 |
# File 'lib/schemacop/v3/symbol_node.rb', line 4 def as_json {} # Not supported by Json Schema end |