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.25.0 lib/roku_builder/array.rb
roku_builder-4.24.3 lib/roku_builder/array.rb
roku_builder-4.24.1 lib/roku_builder/array.rb
roku_builder-4.24.0 lib/roku_builder/array.rb
roku_builder-4.23.2 lib/roku_builder/array.rb
roku_builder-4.23.1 lib/roku_builder/array.rb
roku_builder-4.23.0 lib/roku_builder/array.rb
roku_builder-4.22.9 lib/roku_builder/array.rb
roku_builder-4.22.8 lib/roku_builder/array.rb
roku_builder-4.22.7 lib/roku_builder/array.rb
roku_builder-4.22.6 lib/roku_builder/array.rb
roku_builder-4.22.5 lib/roku_builder/array.rb
roku_builder-4.22.4 lib/roku_builder/array.rb
roku_builder-4.22.3 lib/roku_builder/array.rb
roku_builder-4.22.2 lib/roku_builder/array.rb
roku_builder-4.22.1 lib/roku_builder/array.rb
roku_builder-4.21.6 lib/roku_builder/array.rb
roku_builder-4.21.5 lib/roku_builder/array.rb
roku_builder-4.21.4 lib/roku_builder/array.rb
roku_builder-4.21.3 lib/roku_builder/array.rb