Method: Schemacop::V3::DslScope#respond_to_missing?

Defined in:
lib/schemacop/v3/dsl_scope.rb

#respond_to_missing?(name, *args) ⇒ Boolean

Returns:

  • (Boolean)


37
38
39
40
41
42
43
# File 'lib/schemacop/v3/dsl_scope.rb', line 37

def respond_to_missing?(name, *args)
  match = EXP_NAME.match(name)
  return super unless match

  base_name, _req_optional = match.captures
  return NodeRegistry.by_short_name(base_name).present? || super
end