Module: Doodle::SmokeAndMirrors

Included in:
BaseMethods
Defined in:
lib/doodle.rb

Overview

what it says on the tin :) various hacks to hide @__doodle__ variable

Instance Method Summary collapse

Instance Method Details

#inspectObject

hide @__doodle__ from inspect



426
427
428
# File 'lib/doodle.rb', line 426

def inspect
  super.gsub(/\s*@__doodle__=,/,'').gsub(/,?\s*@__doodle__=/,'')
end

#pretty_print(q) ⇒ Object

fix for pp



430
431
432
# File 'lib/doodle.rb', line 430

def pretty_print(q)
  q.pp_object(self)
end