Sha256: 2ffde5ad27e906ac7d951780a9b9d7326ba34e81c68231c7bdcf6a4c42a469ee

Contents?: true

Size: 234 Bytes

Versions: 73

Compression:

Stored size: 234 Bytes

Contents

# ********** Copyright 2016 Viacom, Inc. Apache 2.0 **********

class ::Array
  def any_is_start?(full_string)
    each do |item|
      if full_string.start_with?(item)
        return true
      end
    end
    return false
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
roku_builder-4.30.0 lib/roku_builder/array.rb
roku_builder-4.29.9 lib/roku_builder/array.rb
roku_builder-4.29.8 lib/roku_builder/array.rb
roku_builder-4.29.7 lib/roku_builder/array.rb
roku_builder-4.29.6 lib/roku_builder/array.rb
roku_builder-4.29.4 lib/roku_builder/array.rb
roku_builder-4.29.2 lib/roku_builder/array.rb
roku_builder-4.29.1 lib/roku_builder/array.rb
roku_builder-4.28.0 lib/roku_builder/array.rb
roku_builder-4.27.2 lib/roku_builder/array.rb
roku_builder-4.27.1 lib/roku_builder/array.rb
roku_builder-4.27.0 lib/roku_builder/array.rb
roku_builder-4.26.2 lib/roku_builder/array.rb
roku_builder-4.26.1 lib/roku_builder/array.rb
roku_builder-4.26.0 lib/roku_builder/array.rb
roku_builder-4.25.6 lib/roku_builder/array.rb
roku_builder-4.25.5 lib/roku_builder/array.rb
roku_builder-4.25.4 lib/roku_builder/array.rb
roku_builder-4.25.3 lib/roku_builder/array.rb
roku_builder-4.25.1 lib/roku_builder/array.rb