instance method
missing_name?
Ruby on Rails 7.1.6
Since v3.0.20Signature
missing_name?(name)
Was this exception raised because the given name was missing?
begin HelloWorld rescue NameError => e e.missing_name?("HelloWorld") end # => true
Parameters
-
namereq
Source
# File activesupport/lib/active_support/core_ext/name_error.rb, line 44
def missing_name?(name)
if name.is_a? Symbol
self.name == name
else
missing_name == name.to_s
end
end
Defined in activesupport/lib/active_support/core_ext/name_error.rb line 44
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in NameError