Module: Doodle::SmokeAndMirrors
- Included in:
- BaseMethods
- Defined in:
- lib/doodle/smoke-and-mirrors.rb
Overview
what it says on the tin :) various hacks to hide @__doodle__ variable
Instance Method Summary collapse
-
#inspect ⇒ Object
hide @__doodle__ from inspect.
-
#pretty_print(q) ⇒ Object
fix for pp.
Instance Method Details
#inspect ⇒ Object
hide @__doodle__ from inspect
14 15 16 |
# File 'lib/doodle/smoke-and-mirrors.rb', line 14 def inspect super.gsub(/\s*@__doodle__=,/,'').gsub(/,?\s*@__doodle__=/,'') end |
#pretty_print(q) ⇒ Object
fix for pp
19 20 21 |
# File 'lib/doodle/smoke-and-mirrors.rb', line 19 def pretty_print(q) q.pp_object(self) end |