Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/mvn2/plugin/filter.plugin.rb

Instance Method Summary collapse

Instance Method Details

#start_with_any?(*strs) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/mvn2/plugin/filter.plugin.rb', line 5

def start_with_any?(*strs)
  strs.empty? ? false : strs.any? { |str| start_with?(str) }
end