module Scorpio::OpenAPI::Reference
Public Instance Methods
[](token, *a, &b)
click to toggle source
overrides JSI::Base#[] to implicitly dereference this Reference
, except when the given token is present in this Reference's instance (this should usually only apply to the token '$ref')
see JSI::Base#initialize documentation at www.rubydoc.info/gems/jsi/JSI/Base
Calls superclass method
# File lib/scorpio/openapi/reference.rb, line 9 def [](token, *a, &b) if respond_to?(:to_hash) && !key?(token) deref do |deref_jsi| return deref_jsi[token] end end return super end