Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/xlocalize/xliff.rb

Instance Method Summary collapse

Instance Method Details

#start_with_either?(prefixes) ⇒ Boolean

Returns:



6
7
8
9
10
11
# File 'lib/xlocalize/xliff.rb', line 6

def start_with_either?(prefixes)
  prefixes.each do |prefix|
    return true if start_with?(prefix)
  end
  return false
end