method
starts_with?

1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Expectations::StringHelpers
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
starts_with?(prefix)
public
Hide source
# File lib/spec/expectations/extensions/string_and_symbol.rb, line 4 def starts_with?(prefix) to_s[0..(prefix.to_s.length - 1)] == prefix.to_s end