class ActiveSupport::JSON::Encoding::JSONGemEncoder::EscapedString
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_support/json/encoding.rbs class ActiveSupport::JSON::Encoding::JSONGemEncoder::EscapedString < ActiveSupport::JSON::Encoding::JSONGemEncoder::String def to_json: (?JSON::Ext::Generator::State options, *unused *) -> String def to_s: () -> ActiveSupport::JSON::Encoding::JSONGemEncoder::EscapedString end
:nodoc:
This class wraps all the strings we see and does the extra escaping
def to_json(*)
Experimental RBS support (using type sampling data from the type_fusion
project).
def to_json: (?JSON::Ext::Generator::State options, *unused *) -> String
This signature was generated using 2827 samples from 3 applications.
This class wraps all the strings we see and does the extra escaping
def to_json(*) if Encoding.escape_html_entities_in_json s = super s.gsub! ESCAPE_REGEX_WITH_HTML_ENTITIES, ESCAPED_CHARS s else s = super s.gsub! ESCAPE_REGEX_WITHOUT_HTML_ENTITIES, ESCAPED_CHARS s end end
def to_s
Experimental RBS support (using type sampling data from the type_fusion
project).
def to_s: () -> ActiveSupport::JSON::Encoding::JSONGemEncoder::EscapedString
This signature was generated using 591 samples from 3 applications.
def to_s self end