module RubyBreaker::TypeUnparser

This module prints the RubyBreaker types in a user-friendly way.

Public Class Methods

unparse(t, opts={}) click to toggle source

This method unparses the RubyBreaker type according to the specified options.

t

RubyBreaker type

opts
# File lib/rubybreaker/type/type_unparser.rb, line 164
def self.unparse(t, opts={})
  str = ""
  pp = PrettyPrint.new(str)
  self.unparse_pp(pp, t, opts)
  pp.flush
  return str.strip()
end