class String

Public Instance Methods

starts_with?(other) click to toggle source
# File lib/fn/resource.rb, line 4
def starts_with?(other)
  head = self[0, other.length]
  head == other
end