Class: Array

Inherits:
Object show all
Defined in:
lib/swxruby/core_extensions.rb

Overview

Core Extensions

Instance Method Summary collapse

Instance Method Details

#begins_with?(string) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/swxruby/core_extensions.rb', line 3

def begins_with?(string)
  self.join.begins_with?(string)
end