Module: UselessString::EqualWithout

Included in:
String
Defined in:
lib/equal_without.rb

Instance Method Summary collapse

Instance Method Details

#eql_without_alphabets?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/equal_without.rb', line 28

def eql_without_alphabets?(other_str)
  cmp_without_alphabets(other_str)
end

#eql_without_carriage_return?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/equal_without.rb', line 4

def eql_without_carriage_return?(other_str)
  cmp_without_carriage_return(other_str) == 0
end

#eql_without_end_of_line?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/equal_without.rb', line 12

def eql_without_end_of_line?(other_str)
  cmp_without_end_of_line(other_str) == 0
end

#eql_without_line_feed?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/equal_without.rb', line 8

def eql_without_line_feed?(other_str)
  cmp_without_line_feed(other_str) == 0
end

#eql_without_numbers?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/equal_without.rb', line 20

def eql_without_numbers?(other_str)
  cmp_without_numbers(other_str) == 0
end

#eql_without_spaces?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/equal_without.rb', line 16

def eql_without_spaces?(other_str)
  cmp_without_spaces(other_str) == 0
end

#eql_without_special_characters?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/equal_without.rb', line 24

def eql_without_special_characters?(other_str)
  cmp_without_special_characters(other_str) == 0
end

#eql_without_these?(other_str, array) ⇒ Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/equal_without.rb', line 38

def eql_without_these?(other_str, array)
  cmp_without_these(other_str, array) == 0
end

#eql_without_these_words?(other_str, array) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/equal_without.rb', line 42

def eql_without_these_words?(other_str, array)
  cmp_without_theses_words(other_str, array) == 0
end

#eql_without_this?(other_str, target) ⇒ Boolean Also known as: eql_without_regex?

Returns:

  • (Boolean)


32
33
34
# File 'lib/equal_without.rb', line 32

def eql_without_this?(other_str, target)
  cmp_without_this(other_str, target) == 0
end