eql?(other)
Instance Public methods
Equivalent to String#eql?
. Returns true
if the
class name and other
have the same length and content,
otherwise false
.
1 2 3 4 5 6 | class BlogPost extend ActiveModel::Naming end BlogPost.model_name.eql?( 'BlogPost' ) # => true BlogPost.model_name.eql?( 'Blog Post' ) # => false |
Please login to continue.