Class: JsonStructure::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/json_structure/type.rb

Direct Known Subclasses

Any, AnyOf, Array, Null, Number, Object_, String

Instance Method Summary collapse

Instance Method Details

#===Object



3
4
5
# File 'lib/json_structure/type.rb', line 3

def ===(*)
  false
end

#|(type) ⇒ Object



7
8
9
# File 'lib/json_structure/type.rb', line 7

def |(type)
  AnyOf.new(self, type)
end