Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/raramorph/solution.rb
Instance Method Summary collapse
Instance Method Details
#ends_with_suffix_set?(ends_with_suffix_set) ⇒ Boolean
584 585 586 587 588 589 590 591 |
# File 'lib/raramorph/solution.rb', line 584 def ends_with_suffix_set?(ends_with_suffix_set) length = self.length length.times { |i| return true if ends_with_suffix_set.member?(self[i..length]) } return false end |