Class: String
- Inherits:
 - 
      Object
      
        
- Object
 - String
 
 
- Defined in:
 - lib/string.rb
 
Instance Method Summary collapse
- 
  
    
      #to_j(indent = 0)  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Adds formatted json convertion.
 
Instance Method Details
#to_j(indent = 0) ⇒ String
Adds formatted json convertion
      5 6 7  | 
    
      # File 'lib/string.rb', line 5 def to_j(indent = 0) ' ' * indent + "\"#{self}\"" end  |