method
eql?
v7.0.0 -
Show latest stable
- Class:
ActiveModel::Name
eql?public
Equivalent to String#eql?. Returns true if the class name and other have the same length and content, otherwise false.
class BlogPost extend ActiveModel::Naming end BlogPost.model_name.eql?('BlogPost') # => true BlogPost.model_name.eql?('Blog Post') # => false