<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>source.mihelac.org - Ruby / Rails alternative to PHP print_r()  and var_dump() Comments</title>
  <id>tag:source.mihelac.org,2008:/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
  <updated>2008-02-11T05:05:37Z</updated>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>Binny V A</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:1575</id>
    <published>2008-02-11T05:05:37Z</published>
    <updated>2008-02-11T05:05:37Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by Binny V A</title>
<content type="html">&lt;p&gt;Does ruby(without rails) have any similar function?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>opl</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:92</id>
    <published>2007-05-11T05:26:37Z</published>
    <updated>2007-05-11T05:26:37Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by opl</title>
<content type="html">(Oops, text badly enclosed was)
What I really need is print_r or var_dump in ruby or RoR, let's google &quot;print_r ruby&quot;</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>opl</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:91</id>
    <published>2007-05-11T05:23:49Z</published>
    <updated>2007-05-11T05:23:49Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by opl</title>
<content type="html">I just thought 5 minutes ago: &amp;lt;&amp;lt;what need or print_r really in var_dump ruby i ror is&gt;&gt;.

Your post will be VERY useful to me, thanks!!</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>Dustin</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:90</id>
    <published>2006-12-11T10:11:11Z</published>
    <updated>2006-12-11T10:11:11Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by Dustin</title>
<content type="html">As a substitute for print_r, I simply do: [code]p ary[/code]</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>cies</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:89</id>
    <published>2006-10-13T04:55:17Z</published>
    <updated>2006-10-13T04:55:17Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by cies</title>
<content type="html">i used:

object.to_json

but i'll deffinitly try the above mentioned</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>Bojan</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:88</id>
    <published>2006-07-05T13:46:05Z</published>
    <updated>2006-07-05T13:46:05Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by Bojan</title>
<content type="html">PHP &lt;code&gt;isset(var1)&lt;/code&gt; can be written as:
&lt;code&gt;defined? var1&lt;/code&gt;</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>afkm_d</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:87</id>
    <published>2006-05-18T10:53:29Z</published>
    <updated>2006-05-18T10:53:29Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by afkm_d</title>
<content type="html">Thanks for this hint - nearly got insane...</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>tomtt</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:86</id>
    <published>2006-04-20T10:16:43Z</published>
    <updated>2006-04-20T10:16:43Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by tomtt</title>
<content type="html">Try pretty print:

require 'pp'
pp(ENV)</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>Bojan</name>
    </author>
    <id>tag:source.mihelac.org,2006-03-31:19:85</id>
    <published>2006-03-31T09:30:45Z</published>
    <updated>2006-03-31T09:30:45Z</updated>
    <link href="http://source.mihelac.org/2006/3/31/ruby-rails-alternative-to-php-print_r-and-var_dump" rel="alternate" type="text/html"/>
    <title>Comment on 'Ruby / Rails alternative to PHP print_r()  and var_dump()' by Bojan</title>
<content type="html">Additionaly, &lt;code&gt;isset($_GET['param'])&lt;/code&gt;, can be written as &lt;code&gt;params.include?(&quot;confirm&quot;)&lt;/code&gt;.</content>  </entry>
</feed>
