Class: Babl::Schema::Typed

Inherits:
Object
  • Object
show all
Defined in:
lib/babl/schema/typed.rb

Constant Summary collapse

INTEGER =
new('integer', [::Integer])
BOOLEAN =
new('boolean', [::TrueClass, ::FalseClass])
NUMBER =
new('number', [::Numeric])
STRING =
new('string', [::String])

Instance Method Summary collapse

Instance Method Details

#jsonObject



11
12
13
# File 'lib/babl/schema/typed.rb', line 11

def json
    { type: type }
end