Module: RubyBreaker::TypeUnparser
- Includes:
- TypeDefs
- Defined in:
- lib/rubybreaker/type/type_unparser.rb
Overview
This module prints the RubyBreaker types in a user-friendly way.
Class Method Summary collapse
-
.unparse(t, opts = {}) ⇒ Object
This method unparses the RubyBreaker type according to the specified options.
Class Method Details
.unparse(t, opts = {}) ⇒ Object
This method unparses the RubyBreaker type according to the specified options.
- t
-
RubyBreaker type
- opts
164 165 166 167 168 169 170 |
# 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 |