Class: WhatIs::Description

Inherits:
String
  • Object
show all
Defined in:
lib/whatis.rb

Overview

String-like class, with the only difference for how its #inspect is represented.

Used for ThisIs#describe method for its answer to be readable in Ruby console (IRB or Pry)

Examples:

"foo\nbar"
# => "foo\nbar"
Description.new("foo\nbar")
# => foo
# bar