Class: StringUtilityBelt::General::GENERAL
- Inherits:
-
Object
- Object
- StringUtilityBelt::General::GENERAL
- Defined in:
- lib/string_utility_belt/general.rb
Constant Summary
- CASE_INSENSITIVE_OPT =
{:case_insensitive => true}
Instance Method Summary (collapse)
- - (Boolean) have_this_words?(words_to_match, options)
-
- (GENERAL) initialize(string)
constructor
A new instance of GENERAL.
Constructor Details
- (GENERAL) initialize(string)
A new instance of GENERAL
8 9 10 |
# File 'lib/string_utility_belt/general.rb', line 8 def initialize(string) @string = string end |
Instance Method Details
- (Boolean) have_this_words?(words_to_match, options)
12 13 14 15 16 17 18 19 20 |
# File 'lib/string_utility_belt/general.rb', line 12 def have_this_words?(words_to_match, ) @arguments = for word in words_to_match return false if not word_is_found_in_the_string?(word) end return true end |