Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/vstudioide/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#begin?(other_str) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/vstudioide/core_ext/string.rb', line 3

def begin?(other_str)
  self.index(other_str) == 0
end