instance method eat

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v3.0.20

Available in: v2.3.18 v3.0.20

Signature

eat(typ, ts)

No documentation comment.

Parameters

typ req
ts req
Source
# File activesupport/lib/active_support/json/backends/okjson.rb, line 165
    def eat(typ, ts)
      if ts[0][0] != typ
        raise Error, "expected #{typ} (got #{ts[0].inspect})"
      end
      ts[1..-1]
    end

Defined in activesupport/lib/active_support/json/backends/okjson.rb line 165 · 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