module UselessString::EqualWithout
Public Instance Methods
eql_without_alphabets?(other_str)
click to toggle source
# File lib/equal_without.rb, line 27 def eql_without_alphabets?(other_str) cmp_without_alphabets(other_str) end
eql_without_carriage_return?(other_str)
click to toggle source
# File lib/equal_without.rb, line 3 def eql_without_carriage_return?(other_str) cmp_without_carriage_return(other_str).zero? end
eql_without_end_of_line?(other_str)
click to toggle source
# File lib/equal_without.rb, line 11 def eql_without_end_of_line?(other_str) cmp_without_end_of_line(other_str).zero? end
eql_without_line_feed?(other_str)
click to toggle source
# File lib/equal_without.rb, line 7 def eql_without_line_feed?(other_str) cmp_without_line_feed(other_str).zero? end
eql_without_numbers?(other_str)
click to toggle source
# File lib/equal_without.rb, line 19 def eql_without_numbers?(other_str) cmp_without_numbers(other_str).zero? end
eql_without_spaces?(other_str)
click to toggle source
# File lib/equal_without.rb, line 15 def eql_without_spaces?(other_str) cmp_without_spaces(other_str).zero? end
eql_without_special_characters?(other_str)
click to toggle source
# File lib/equal_without.rb, line 23 def eql_without_special_characters?(other_str) cmp_without_special_characters(other_str).zero? end
eql_without_these?(other_str, target_list, case_insensitive: true)
Alias for: eql_without_these_words?
eql_without_these_words?(other_str, target_list, case_insensitive: true)
click to toggle source
# File lib/equal_without.rb, line 37 def eql_without_these_words?(other_str, target_list, case_insensitive: true) cmp_without_theses_words(other_str, target_list, case_insensitive).zero? end
Also aliased as: eql_without_these?
eql_without_this?(other_str, target)
click to toggle source
# File lib/equal_without.rb, line 31 def eql_without_this?(other_str, target) cmp_without_this(other_str, target).zero? end
Also aliased as: eql_without_regex?