Module: UselessString::EqualWithout
- Included in:
- String
- Defined in:
- lib/equal_without.rb
Instance Method Summary collapse
- #eql_without_alphabets?(other_str) ⇒ Boolean
- #eql_without_carriage_return?(other_str) ⇒ Boolean
- #eql_without_end_of_line?(other_str) ⇒ Boolean
- #eql_without_line_feed?(other_str) ⇒ Boolean
- #eql_without_numbers?(other_str) ⇒ Boolean
- #eql_without_spaces?(other_str) ⇒ Boolean
- #eql_without_special_characters?(other_str) ⇒ Boolean
- #eql_without_these_words?(other_str, target_list, case_insensitive: true) ⇒ Boolean (also: #eql_without_these?)
- #eql_without_this?(other_str, target) ⇒ Boolean (also: #eql_without_regex?)
Instance Method Details
#eql_without_alphabets?(other_str) ⇒ Boolean
27 28 29 |
# 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) ⇒ Boolean
3 4 5 |
# 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) ⇒ Boolean
11 12 13 |
# 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) ⇒ Boolean
7 8 9 |
# 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) ⇒ Boolean
19 20 21 |
# 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) ⇒ Boolean
15 16 17 |
# 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) ⇒ Boolean
23 24 25 |
# 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_words?(other_str, target_list, case_insensitive: true) ⇒ Boolean Also known as: eql_without_these?
37 38 39 |
# 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 |
#eql_without_this?(other_str, target) ⇒ Boolean Also known as: eql_without_regex?
31 32 33 |
# File 'lib/equal_without.rb', line 31 def eql_without_this?(other_str, target) cmp_without_this(other_str, target).zero? end |