instance method strtok

Ruby on Rails 3.0.20

Since v2.3.18 Last seen in v3.0.20

Available in: v2.3.18 v3.0.20

Signature

strtok(s)

No documentation comment.

Parameters

s req
Source
# File activesupport/lib/active_support/json/backends/okjson.rb, line 246
    def strtok(s)
      m = /"([^"\\]|\\["\/\\bfnrt]|\\u[0-9a-fA-F]{4})*"/.match(s)
      if ! m
        raise Error, "invalid string literal at #{abbrev(s)}"
      end
      [:str, m[0], unquote(m[0])]
    end

Defined in activesupport/lib/active_support/json/backends/okjson.rb line 246 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::OkJson

Type at least 2 characters to search.

↑↓ navigate · open · esc close