instance method
truetok
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v3.0.20Available in: v2.3.18 v3.0.20
Signature
truetok(s)
No documentation comment.
Parameters
-
sreq
Source
# File activesupport/lib/active_support/json/backends/okjson.rb, line 226
def truetok(s); s[0,4] == 'true' ? [:val, 'true', true] : [] end
Defined in activesupport/lib/active_support/json/backends/okjson.rb line 226
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::OkJson