Class: Struct
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#colorless_pretty_print ⇒ Object
236 |
# File 'lib/colorful_inspect.rb', line 236 alias colorless_pretty_print pretty_print |
#pretty_print(q) ⇒ Object
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/colorful_inspect.rb', line 238 def pretty_print(q) q.text '(' q.pp self.class q.text ") " ColorfulInspect.group(q, "{", "}") do each_pair.with_index do |(key, val), n| ColorfulInspect.break q q.pp key q.text " => " q.pp val q.text "," if n != size - 1 end end end |