Module: Literal::Openapi::Types

Defined in:
lib/literal/openapi.rb,
lib/literal/openapi/types.rb,
lib/literal/openapi/types/ref_type.rb

Defined Under Namespace

Classes: RefType

Instance Method Summary collapse

Instance Method Details

#_Ref(klass) ⇒ Object



9
10
11
# File 'lib/literal/openapi/types.rb', line 9

def _Ref(klass)
  Literal::Openapi::Types::RefType.new(klass)
end

#_Ref?(klass) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/literal/openapi/types.rb', line 13

def _Ref?(klass)
  Literal::Types::NilableType.new(_Ref(klass))
end