There should be isolated (not required by default) lib/reality/iruby module, which, on require adds #to_html method to Entity and List, making them pretty for IRuby Notebook. And maybe Entity#describe should return some object, which is inspect-ed as a multiline string (for irb) and to_html-ed as, well, pretty HTML?..
There should be isolated (not required by default)
lib/reality/iruby
module, which, onrequire
adds#to_html
method toEntity
andList
, making them pretty for IRuby Notebook. And maybeEntity#describe
should return some object, which isinspect
-ed as a multiline string (forirb
) andto_html
-ed as, well, pretty HTML?..