Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/roku_builder/array.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#any_is_start?(full_string) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
# File 'lib/roku_builder/array.rb', line 4

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