H
Hal Fulton
There are three things I would like to do but I am not
sure how:
1. Redirect the output to another IO -- something like
STDERR.pp obj
2. Retrieve the text without printing it (analogous to #inspect):
str = obj.pretty # or whatever
3. Add pp functionality to the Date class. This doesn't work:
class Date
def pretty_print
inspect
end
end
Thanks for assistance...
Hal
sure how:
1. Redirect the output to another IO -- something like
STDERR.pp obj
2. Retrieve the text without printing it (analogous to #inspect):
str = obj.pretty # or whatever
3. Add pp functionality to the Date class. This doesn't work:
class Date
def pretty_print
inspect
end
end
Thanks for assistance...
Hal