When I use myarray.inspect, the result has some odd asymmetrical
formatting, like: #nil, "role_id"=>"1", "last"=>"Normal", "first"=>"Norman", "id"=>"17"}>
what is the significance of the # at the start, and the } and > at the
end of this myarray.inspect result?
Looks like
(1) myarray is an Object having an instance method being a Hash
(2) the # looks like a value of the hash is a method :nil
(3) and it looks like the output was cut before the "#"
There is an alternative of course:
class Array
def inspect
"#nil, "role_id"=>"1", "last"=>"Normal", "first"=>"Norman",
"id"=>"17"}>"
end
end
which I consider unlikely
Cheers
Robert
···
On 4/7/06, Les Nightingill <lester@ix.netcom.com> wrote:
When I use myarray.inspect, the result has some odd asymmetrical
formatting, like: #nil, "role_id"=>"1", "last"=>"Normal", "first"=>"Norman", "id"=>"17"}>
what is the significance of the # at the start, and the } and > at the
end of this myarray.inspect result?