module Rpr::Formatter::Json
Public Class Methods
print(object)
click to toggle source
# File lib/rpr/formatter/json.rb, line 6 def self.print(object) object = object.to_sexp_array if defined?(::Parser::AST::Node) && object.is_a?(::Parser::AST::Node) puts JSON.pretty_generate(object) end