class String

Public Instance Methods

to_j(indent = 0) click to toggle source

@return [String] Json for the String, which is quoted self.

# File lib/string.rb, line 3
def to_j(indent = 0)
  "  "*indent + "\"#{self}\""
end