Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added post on cryptic global variables in ruby.

  • Loading branch information...
commit 48471942bd49ed8f3694423a99912cf1c52f8d9b 1 parent 0a12996
@andhapp authored
Showing with 806 additions and 314 deletions.
  1. +4 −4 public/2009/08/16/hello-world.html/index.html
  2. +4 −4 public/2009/08/17/is-variable-an-object.html/index.html
  3. +4 −4 public/2009/08/18/method-arguments-in-ruby.html/index.html
  4. +4 −4 public/2009/08/24/excellent-tutorial-on-casewhen.html/index.html
  5. +4 −4 public/2009/09/24/ruby-idioms.html/index.html
  6. +4 −4 public/2009/09/24/ruby-online-courses.html/index.html
  7. +4 −4 public/2009/09/30/define_method-instance_eval-and-class_eval.html/index.html
  8. +4 −4 public/2009/10/09/ruby-object-model.html/index.html
  9. +4 −4 public/2009/10/31/class-names-are-constants.html/index.html
  10. +4 −4 public/2009/10/31/immediate-values.html/index.html
  11. +4 −4 public/2009/11/04/serendipity.html/index.html
  12. +4 −4 public/2009/11/19/ruby-streams-stdin-stdout-and-stderr.html/index.html
  13. +4 −4 public/2009/12/20/proc-proc-blocks.html/index.html
  14. +4 −4 public/2010/02/22/install-pg-and-mysql-gems.html/index.html
  15. +4 −4 public/2010/07/06/paperclip-and-rescue.html/index.html
  16. +4 −4 public/2011/01/03/convert-array-to-hash-mystery.html/index.html
  17. +4 −4 public/2011/01/03/method-default-arguments-and-passing-nil-value.html/index.html
  18. +4 −4 public/2011/01/17/ruby-hacking-guide.html/index.html
  19. +4 −4 public/2011/01/21/ruby-file-append-mode.html/index.html
  20. +4 −4 public/2011/03/12/free-ruby-1.9-online-book.html/index.html
  21. +4 −4 public/2011/03/12/ruby-hacking-guide-chapter-1.html/index.html
  22. +4 −4 public/2011/04/17/an-interesting-ruby-method.html/index.html
  23. +4 −4 public/2011/04/21/inconsistent-hashes.html/index.html
  24. +4 −4 public/2011/12/04/installing-any-ruby-source-on-your-local-machine-with-rvm.html/index.html
  25. +4 −4 public/2013/02/23/inspect-to_s-change-in-ruby2.html/index.html
  26. +4 −4 public/2013/04/08/openstruct-to-hash.html/index.html
  27. +4 −4 public/2013/04/10/dtrace-probes-in-ruby-2.html/index.html
  28. +4 −4 public/2013/12/01/Mina-the-deployer.html/index.html
  29. +6 −7 public/2013/12/30/aspect-oriented-programming.html/index.html
  30. +6 −4 public/2014/01/06/nested-exception-in-ruby-2.1.0.html/index.html
  31. +248 −0 public/2014/01/07/cryptic-global-variables-in-ruby.html/index.html
  32. +25 −35 public/atom.xml
  33. +15 −5 public/blog/archives/index.html
  34. +41 −62 public/blog/page/2/index.html
  35. +64 −43 public/blog/page/3/index.html
  36. +207 −0 public/blog/page/4/index.html
  37. +54 −43 public/index.html
  38. +7 −3 public/sitemap.xml
  39. +21 −0 source/_posts/2014-01-07-cryptic-global-variables-in-ruby.markdown
View
8 public/2009/08/16/hello-world.html/index.html
@@ -146,6 +146,10 @@ <h1 class="entry-title">Hello Ruby World!</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -161,10 +165,6 @@ <h1 class="entry-title">Hello Ruby World!</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/08/17/is-variable-an-object.html/index.html
@@ -193,6 +193,10 @@ <h1 class="entry-title">Is Variable an Object?</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -208,10 +212,6 @@ <h1 class="entry-title">Is Variable an Object?</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/08/18/method-arguments-in-ruby.html/index.html
@@ -148,6 +148,10 @@ <h1 class="entry-title">Method Arguments in Ruby</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -163,10 +167,6 @@ <h1 class="entry-title">Method Arguments in Ruby</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/08/24/excellent-tutorial-on-casewhen.html/index.html
@@ -146,6 +146,10 @@ <h1 class="entry-title">Excellent Tutorial on Case/when</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -161,10 +165,6 @@ <h1 class="entry-title">Excellent Tutorial on Case/when</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/09/24/ruby-idioms.html/index.html
@@ -151,6 +151,10 @@ <h1 class="entry-title">Ruby Idioms</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -166,10 +170,6 @@ <h1 class="entry-title">Ruby Idioms</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/09/24/ruby-online-courses.html/index.html
@@ -144,6 +144,10 @@ <h1 class="entry-title">Ruby Online Courses</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -159,10 +163,6 @@ <h1 class="entry-title">Ruby Online Courses</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/09/30/define_method-instance_eval-and-class_eval.html/index.html
@@ -164,6 +164,10 @@ <h1 class="entry-title">Define_method, Instance_eval and Class_eval</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -179,10 +183,6 @@ <h1 class="entry-title">Define_method, Instance_eval and Class_eval</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/10/09/ruby-object-model.html/index.html
@@ -192,6 +192,10 @@ <h1 class="entry-title">Ruby Object Model</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -207,10 +211,6 @@ <h1 class="entry-title">Ruby Object Model</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/10/31/class-names-are-constants.html/index.html
@@ -153,6 +153,10 @@ <h1 class="entry-title">Class Names Are Constants</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -168,10 +172,6 @@ <h1 class="entry-title">Class Names Are Constants</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/10/31/immediate-values.html/index.html
@@ -166,6 +166,10 @@ <h1 class="entry-title">Immediate Values</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -181,10 +185,6 @@ <h1 class="entry-title">Immediate Values</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/11/04/serendipity.html/index.html
@@ -167,6 +167,10 @@ <h1 class="entry-title">Serendipity</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -182,10 +186,6 @@ <h1 class="entry-title">Serendipity</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/11/19/ruby-streams-stdin-stdout-and-stderr.html/index.html
@@ -215,6 +215,10 @@ <h1 class="entry-title">Ruby Streams - $stdin, $stdout and $stderr</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -230,10 +234,6 @@ <h1 class="entry-title">Ruby Streams - $stdin, $stdout and $stderr</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2009/12/20/proc-proc-blocks.html/index.html
@@ -189,6 +189,10 @@ <h1 class="entry-title">Proc, Proc, Blocks</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -204,10 +208,6 @@ <h1 class="entry-title">Proc, Proc, Blocks</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2010/02/22/install-pg-and-mysql-gems.html/index.html
@@ -162,6 +162,10 @@ <h1 class="entry-title">Install Pg and Mysql Gems</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -177,10 +181,6 @@ <h1 class="entry-title">Install Pg and Mysql Gems</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2010/07/06/paperclip-and-rescue.html/index.html
@@ -163,6 +163,10 @@ <h1 class="entry-title">Paperclip and Rescue</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -178,10 +182,6 @@ <h1 class="entry-title">Paperclip and Rescue</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/01/03/convert-array-to-hash-mystery.html/index.html
@@ -185,6 +185,10 @@ <h1 class="entry-title">Convert Array to Hash Mystery</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -200,10 +204,6 @@ <h1 class="entry-title">Convert Array to Hash Mystery</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/01/03/method-default-arguments-and-passing-nil-value.html/index.html
@@ -155,6 +155,10 @@ <h1 class="entry-title">Method Default Arguments and Passing Nil Value</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -170,10 +174,6 @@ <h1 class="entry-title">Method Default Arguments and Passing Nil Value</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/01/17/ruby-hacking-guide.html/index.html
@@ -146,6 +146,10 @@ <h1 class="entry-title">Ruby Hacking Guide</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -161,10 +165,6 @@ <h1 class="entry-title">Ruby Hacking Guide</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/01/21/ruby-file-append-mode.html/index.html
@@ -151,6 +151,10 @@ <h1 class="entry-title">Ruby File Append Mode</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -166,10 +170,6 @@ <h1 class="entry-title">Ruby File Append Mode</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/03/12/free-ruby-1.9-online-book.html/index.html
@@ -144,6 +144,10 @@ <h1 class="entry-title">Free Ruby 1.9 Online Book</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -159,10 +163,6 @@ <h1 class="entry-title">Free Ruby 1.9 Online Book</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/03/12/ruby-hacking-guide-chapter-1.html/index.html
@@ -146,6 +146,10 @@ <h1 class="entry-title">Ruby Hacking Guide - Chapter 1</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -161,10 +165,6 @@ <h1 class="entry-title">Ruby Hacking Guide - Chapter 1</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/04/17/an-interesting-ruby-method.html/index.html
@@ -208,6 +208,10 @@ <h1 class="entry-title">An Interesting Ruby Method</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -223,10 +227,6 @@ <h1 class="entry-title">An Interesting Ruby Method</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/04/21/inconsistent-hashes.html/index.html
@@ -155,6 +155,10 @@ <h1 class="entry-title">Inconsistent Hashes</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -170,10 +174,6 @@ <h1 class="entry-title">Inconsistent Hashes</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2011/12/04/installing-any-ruby-source-on-your-local-machine-with-rvm.html/index.html
@@ -233,6 +233,10 @@ <h1 class="entry-title">Installing Any Ruby Source on Your Local Machine With RV
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -248,10 +252,6 @@ <h1 class="entry-title">Installing Any Ruby Source on Your Local Machine With RV
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2013/02/23/inspect-to_s-change-in-ruby2.html/index.html
@@ -150,6 +150,10 @@ <h1 class="entry-title">In Ruby2, Inspect Independent of To_s</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -165,10 +169,6 @@ <h1 class="entry-title">In Ruby2, Inspect Independent of To_s</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2013/04/08/openstruct-to-hash.html/index.html
@@ -169,6 +169,10 @@ <h1 class="entry-title">OpenStruct to Hash</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -184,10 +188,6 @@ <h1 class="entry-title">OpenStruct to Hash</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2013/04/10/dtrace-probes-in-ruby-2.html/index.html
@@ -219,6 +219,10 @@ <h1 class="entry-title">DTrace Probes in Ruby 2 and a Startling Discovery</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -234,10 +238,6 @@ <h1 class="entry-title">DTrace Probes in Ruby 2 and a Startling Discovery</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
8 public/2013/12/01/Mina-the-deployer.html/index.html
@@ -152,6 +152,10 @@ <h1 class="entry-title">Mina, the Deployer</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -167,10 +171,6 @@ <h1 class="entry-title">Mina, the Deployer</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
13 public/2013/12/30/aspect-oriented-programming.html/index.html
@@ -9,7 +9,7 @@
<meta name="author" content="andHapp">
- <meta name="description" content="I was looking into Ruby&#8217;s TracePointclass recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint wasadded in Ruby2, ...">
+ <meta name="description" content="I was looking into Ruby&#8217;s TracePoint class recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint wasadded in Ruby2,...">
<!-- http://t.co/dKP3o1e -->
@@ -84,8 +84,7 @@ <h1 class="entry-title">Aspect Oriented Programming</h1>
</header>
-<div class="entry-content"><p>I was looking into Ruby&#8217;s <a href="http://www.ruby-doc.org/core-2.0.0/TracePoint.html">TracePoint</a>
-class recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint was
+<div class="entry-content"><p>I was looking into Ruby&#8217;s <a href="http://www.ruby-doc.org/core-2.0.0/TracePoint.html">TracePoint</a> class recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint was
added in Ruby2, but before that there was a gem that had same function as TracePoint
class. Surprisingly, it was also called <a href="https://github.com/rubyunworks/tracepoint">tracepoint</a>.</p>
@@ -209,6 +208,10 @@ <h1 class="entry-title">Aspect Oriented Programming</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -224,10 +227,6 @@ <h1 class="entry-title">Aspect Oriented Programming</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
10 public/2014/01/06/nested-exception-in-ruby-2.1.0.html/index.html
@@ -182,6 +182,8 @@ <h1 class="entry-title">Nested Exceptions in Ruby 2.1.0</h1>
<a class="basic-alignment left" href="/2013/12/30/aspect-oriented-programming.html/" title="Previous Post: Aspect Oriented Programming">&laquo; Aspect Oriented Programming</a>
+
+ <a class="basic-alignment right" href="/2014/01/07/cryptic-global-variables-in-ruby.html/" title="next Post: Cryptic global variables in Ruby">Cryptic global variables in Ruby &raquo;</a>
</p>
</footer>
@@ -196,6 +198,10 @@ <h1 class="entry-title">Nested Exceptions in Ruby 2.1.0</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -211,10 +217,6 @@ <h1 class="entry-title">Nested Exceptions in Ruby 2.1.0</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
248 public/2014/01/07/cryptic-global-variables-in-ruby.html/index.html
@@ -0,0 +1,248 @@
+
+<!DOCTYPE html>
+<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
+<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
+<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
+<head>
+ <meta charset="utf-8">
+ <title>Cryptic global variables in Ruby - Plough => Ruby</title>
+ <meta name="author" content="andHapp">
+
+
+ <meta name="description" content="Do you know what $! means in Ruby?Years ago, I was discussing some issue regarding GemCutter (now that makesit ancient in programming age), and we ...">
+
+
+ <!-- http://t.co/dKP3o1e -->
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+
+ <link rel="canonical" href="Plough => Ruby/2014/01/07/cryptic-global-variables-in-ruby.html/">
+ <link href="/favicon.png" rel="icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <script src="/javascripts/modernizr-2.0.js"></script>
+ <script src="/javascripts/ender.js"></script>
+ <script src="/javascripts/octopress.js" type="text/javascript"></script>
+ <link href="/atom.xml" rel="alternate" title="Plough => Ruby" type="application/atom+xml">
+ <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
+<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+
+</head>
+
+<body >
+ <header role="banner"><hgroup>
+ <h1><a href="/">Plough => Ruby</a></h1>
+
+ <h2>Journey through ruby</h2>
+
+</hgroup>
+
+</header>
+ <nav role="navigation"><ul class="subscription" data-subscription="rss">
+ <li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
+
+</ul>
+<form action="http://google.com/search" method="get">
+ <fieldset role="search">
+ <input type="hidden" name="q" value="site:Plough => Ruby" />
+ <input class="search" type="text" name="q" results="0" placeholder="Search"/>
+ </fieldset>
+</form>
+<ul class="main-navigation">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+
+</nav>
+ <div id="main">
+ <div id="content">
+ <div>
+<article class="hentry" role="article">
+
+ <header>
+
+ <h1 class="entry-title">Cryptic Global Variables in Ruby</h1>
+
+
+ <p class="meta">
+
+
+
+
+
+
+
+
+
+
+<time datetime="2014-01-07T00:00:00+00:00" pubdate data-updated="true" >Jan 7<span>th</span>, 2014</time>
+
+ </p>
+
+ </header>
+
+
+<div class="entry-content"><p>Do you know what $! means in Ruby?</p>
+
+<p>Years ago, I was discussing some issue regarding GemCutter (now that makes
+it ancient in programming age), and we were talking about global
+variables in Ruby, for example, $; and $/. At the time, we couldn&#8217;t
+really find a place to look them up, even Google <a href="https://www.google.co.uk/search?q=%24!+Ruby&amp;oq=%24!+Ruby&amp;aqs=chrome..69i57.2487j0j7&amp;sourceid=chrome&amp;espv=210&amp;es_sm=91&amp;ie=UTF-8">isn&#8217;t very effective</a> given
+the nature of the query.</p>
+
+<p>Anyways, while looking through Ruby&#8217;s standard library, I found the file
+<a href="http://ruby-doc.org/stdlib-2.1.0/libdoc/English/rdoc/English.html">English.rb</a>.
+This library has English names for all the cryptic global variables. For
+example: $ERROR_INFO represents $!.</p>
+
+<p>If you ever have to look up the English names, which I suggest you do as
+it makes code easier to read, just refer to that file.</p>
+</div>
+
+
+ <footer>
+ <p class="meta">
+
+
+
+<span class="byline author vcard">Posted by <span class="fn">andHapp</span></span>
+
+
+
+
+
+
+
+
+
+
+
+<time datetime="2014-01-07T00:00:00+00:00" pubdate data-updated="true" >Jan 7<span>th</span>, 2014</time>
+
+
+
+ </p>
+
+ <div class="sharing">
+
+ <a href="http://twitter.com/share" class="twitter-share-button" data-url="Plough => Ruby/2014/01/07/cryptic-global-variables-in-ruby.html/" data-via="" data-counturl="Plough => Ruby/2014/01/07/cryptic-global-variables-in-ruby.html/" >Tweet</a>
+
+
+ <div class="g-plusone" data-size="medium"></div>
+
+
+ <div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
+
+</div>
+
+
+ <p class="meta">
+
+ <a class="basic-alignment left" href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/" title="Previous Post: Nested exceptions in Ruby 2.1.0">&laquo; Nested exceptions in Ruby 2.1.0</a>
+
+
+ </p>
+ </footer>
+</article>
+
+</div>
+
+<aside class="sidebar">
+
+ <section>
+ <h1>Recent Posts</h1>
+ <ul id="recent_posts">
+
+ <li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
+ <a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
+ </li>
+
+ <li class="post">
+ <a href="/2013/12/30/aspect-oriented-programming.html/">Aspect Oriented Programming</a>
+ </li>
+
+ <li class="post">
+ <a href="/2013/12/01/Mina-the-deployer.html/">Mina, the deployer</a>
+ </li>
+
+ <li class="post">
+ <a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
+ </li>
+
+ </ul>
+</section>
+
+
+
+
+
+</aside>
+
+
+ </div>
+ </div>
+ <footer role="contentinfo"><p>
+ Copyright &copy; 2014 - andHapp -
+ <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
+</p>
+
+</footer>
+
+
+
+<div id="fb-root"></div>
+<script>(function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) {return;}
+ js = d.createElement(s); js.id = id;
+ js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
+ fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));</script>
+
+
+ <script type="text/javascript">
+ (function() {
+ var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
+ script.src = 'https://apis.google.com/js/plusone.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
+ })();
+ </script>
+
+
+
+ <script type="text/javascript">
+ (function(){
+ var twitterWidgets = document.createElement('script');
+ twitterWidgets.type = 'text/javascript';
+ twitterWidgets.async = true;
+ twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
+ document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
+ })();
+ </script>
+
+
+
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-7379349-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+
+
+
+
+
+</body>
+</html>
View
60 public/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Plough => Ruby]]></title>
<link href="Plough => Ruby/atom.xml&#8221; rel=&#8221;self&#8221;/>
<link href="Plough => Ruby/&#8221;/>
- <updated>2014-01-06T22:22:41+00:00</updated>
+ <updated>2014-01-07T23:42:53+00:00</updated>
<id>Plough => Ruby/</id>
<author>
<name><![CDATA[andHapp]]></name>
@@ -14,6 +14,29 @@
<entry>
+ <title type="html"><![CDATA[Cryptic global variables in Ruby]]></title>
+ <link href="Plough => Ruby/2014/01/07/cryptic-global-variables-in-ruby.html/&#8221;/>
+ <updated>2014-01-07T00:00:00+00:00</updated>
+ <id>Plough => Ruby/2014/01/07/cryptic-global-variables-in-ruby</id>
+ <content type="html"><![CDATA[<p>Do you know what $! means in Ruby?</p>
+
+<p>Years ago, I was discussing some issue regarding GemCutter (now that makes
+it ancient in programming age), and we were talking about global
+variables in Ruby, for example, $; and $/. At the time, we couldn&#8217;t
+really find a place to look them up, even Google <a href="https://www.google.co.uk/search?q=%24!+Ruby&amp;oq=%24!+Ruby&amp;aqs=chrome..69i57.2487j0j7&amp;sourceid=chrome&amp;espv=210&amp;es_sm=91&amp;ie=UTF-8">isn&#8217;t very effective</a> given
+the nature of the query.</p>
+
+<p>Anyways, while looking through Ruby&#8217;s standard library, I found the file
+<a href="http://ruby-doc.org/stdlib-2.1.0/libdoc/English/rdoc/English.html">English.rb</a>.
+This library has English names for all the cryptic global variables. For
+example: $ERROR_INFO represents $!.</p>
+
+<p>If you ever have to look up the English names, which I suggest you do as
+it makes code easier to read, just refer to that file.</p>
+]]></content>
+ </entry>
+
+ <entry>
<title type="html"><![CDATA[Nested exceptions in Ruby 2.1.0]]></title>
<link href="Plough => Ruby/2014/01/06/nested-exception-in-ruby-2.1.0.html/&#8221;/>
<updated>2014-01-06T00:00:00+00:00</updated>
@@ -81,8 +104,7 @@ It&#8217;s not as sophisticated as the gems out there, but it&#8217;s getting th
<link href="Plough => Ruby/2013/12/30/aspect-oriented-programming.html/&#8221;/>
<updated>2013-12-30T00:00:00+00:00</updated>
<id>Plough => Ruby/2013/12/30/aspect-oriented-programming</id>
- <content type="html"><![CDATA[<p>I was looking into Ruby&#8217;s <a href="http://www.ruby-doc.org/core-2.0.0/TracePoint.html">TracePoint</a>
-class recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint was
+ <content type="html"><![CDATA[<p>I was looking into Ruby&#8217;s <a href="http://www.ruby-doc.org/core-2.0.0/TracePoint.html">TracePoint</a> class recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint was
added in Ruby2, but before that there was a gem that had same function as TracePoint
class. Surprisingly, it was also called <a href="https://github.com/rubyunworks/tracepoint">tracepoint</a>.</p>
@@ -797,36 +819,4 @@ system('echo Wheeee')
]]></content>
</entry>
- <entry>
- <title type="html"><![CDATA[Serendipity]]></title>
- <link href="Plough => Ruby/2009/11/04/serendipity.html/&#8221;/>
- <updated>2009-11-04T00:00:00+00:00</updated>
- <id>Plough => Ruby/2009/11/04/serendipity</id>
- <content type="html"><![CDATA[<p>I accidently found a nifty way of calling <del datetime="2009-11-04T09:19:06+00:00">class</del> singleton methods. Imagine you have this code:</p>
-
-<pre>
-
-class FoundANewWay
- def self.to_call_a_singleton_method
- puts "It works!"
- end
-end
-</pre>
-
-
-<p>and you can call it like this:</p>
-
-<pre>
-FoundANewWay.to_call_a_singleton_method
-
-or
-
-FoundANewWay::to_call_a_singleton_method
-</pre>
-
-
-<p>Cool!</p>
-]]></content>
- </entry>
-
</feed>
View
20 public/blog/archives/index.html
@@ -9,7 +9,7 @@
<meta name="author" content="andHapp">
- <meta name="description" content=" Blog Archive 2014 Nested exceptions in Ruby 2.1.0Jan 06 2014 2013 Aspect Oriented ProgrammingDec 30 2013 Mina, the deplo...">
+ <meta name="description" content=" Blog Archive 2014 Cryptic global variables in RubyJan 07 2014 Nested exceptions in Ruby 2.1.0Jan 06 2014 2013 Aspect Ori...">
<!-- http://t.co/dKP3o1e -->
@@ -75,6 +75,16 @@ <h1 class="entry-title">Blog Archive</h1>
<article>
+<h1><a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a></h1>
+<time datetime="2014-01-07T00:00:00+00:00" pubdate><span class='month'>Jan</span> <span class='day'>07</span> <span class='year'>2014</span></time>
+
+
+</article>
+
+
+
+<article>
+
<h1><a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a></h1>
<time datetime="2014-01-06T00:00:00+00:00" pubdate><span class='month'>Jan</span> <span class='day'>06</span> <span class='year'>2014</span></time>
@@ -397,6 +407,10 @@ <h1 class="entry-title">Blog Archive</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -412,10 +426,6 @@ <h1 class="entry-title">Blog Archive</h1>
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
103 public/blog/page/2/index.html
@@ -9,7 +9,7 @@
<meta name="author" content="andHapp">
- <meta name="description" content="Just found this nicely done online book on Ruby 1.9, in particular. It&#8217;s a must see.">
+ <meta name="description" content="I have completed proof-reading and testing the code from old Ruby Hacking Guide and re-releases in the wild again. It still needs some styling work...">
<!-- http://t.co/dKP3o1e -->
@@ -66,6 +66,42 @@
<header>
+ <h1 class="entry-title"><a href="/2011/03/12/ruby-hacking-guide-chapter-1.html/">Ruby Hacking Guide - Chapter 1</a></h1>
+
+
+ <p class="meta">
+
+
+
+
+
+
+
+
+
+
+<time datetime="2011-03-12T00:00:00+00:00" pubdate data-updated="true" >Mar 12<span>th</span>, 2011</time>
+
+ </p>
+
+ </header>
+
+
+ <div class="entry-content"><p>I have completed proof-reading and testing the code from old Ruby Hacking Guide and re-releases in the wild again. It still needs some styling work but I will hopefully find time to sort that out this week.</p>
+
+<p>In the meantime, have a <a href="http://rubyhacking.andhapp.co.uk/2011/01/30/chapter-1.html">read through</a> and see if you spot any mistakes.</p>
+</div>
+
+
+
+
+ </article>
+
+
+ <article>
+
+ <header>
+
<h1 class="entry-title"><a href="/2011/03/12/free-ruby-1.9-online-book.html/">Free Ruby 1.9 Online Book</a></h1>
@@ -581,63 +617,6 @@ <h1 class="entry-title"><a href="/2009/11/19/ruby-streams-stdin-stdout-and-stder
</article>
-
- <article>
-
- <header>
-
- <h1 class="entry-title"><a href="/2009/11/04/serendipity.html/">Serendipity</a></h1>
-
-
- <p class="meta">
-
-
-
-
-
-
-
-
-
-
-<time datetime="2009-11-04T00:00:00+00:00" pubdate data-updated="true" >Nov 4<span>th</span>, 2009</time>
-
- </p>
-
- </header>
-
-
- <div class="entry-content"><p>I accidently found a nifty way of calling <del datetime="2009-11-04T09:19:06+00:00">class</del> singleton methods. Imagine you have this code:</p>
-
-<pre>
-
-class FoundANewWay
- def self.to_call_a_singleton_method
- puts "It works!"
- end
-end
-</pre>
-
-
-<p>and you can call it like this:</p>
-
-<pre>
-FoundANewWay.to_call_a_singleton_method
-
-or
-
-FoundANewWay::to_call_a_singleton_method
-</pre>
-
-
-<p>Cool!</p>
-</div>
-
-
-
-
- </article>
-
<nav class="pagination">
<div>
@@ -657,6 +636,10 @@ <h1 class="entry-title"><a href="/2009/11/04/serendipity.html/">Serendipity</a><
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -672,10 +655,6 @@ <h1 class="entry-title"><a href="/2009/11/04/serendipity.html/">Serendipity</a><
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
107 public/blog/page/3/index.html
@@ -9,7 +9,7 @@
<meta name="author" content="andHapp">
- <meta name="description" content="In a previous post, I have explained that variables are basically passed by values in ruby but since they have a reference to the original object a...">
+ <meta name="description" content="I accidently found a nifty way of calling class singleton methods. Imagine you have this code:class FoundANewWay def self.to_call_a_singleton_me...">
<!-- http://t.co/dKP3o1e -->
@@ -66,6 +66,63 @@
<header>
+ <h1 class="entry-title"><a href="/2009/11/04/serendipity.html/">Serendipity</a></h1>
+
+
+ <p class="meta">
+
+
+
+
+
+
+
+
+
+
+<time datetime="2009-11-04T00:00:00+00:00" pubdate data-updated="true" >Nov 4<span>th</span>, 2009</time>
+
+ </p>
+
+ </header>
+
+
+ <div class="entry-content"><p>I accidently found a nifty way of calling <del datetime="2009-11-04T09:19:06+00:00">class</del> singleton methods. Imagine you have this code:</p>
+
+<pre>
+
+class FoundANewWay
+ def self.to_call_a_singleton_method
+ puts "It works!"
+ end
+end
+</pre>
+
+
+<p>and you can call it like this:</p>
+
+<pre>
+FoundANewWay.to_call_a_singleton_method
+
+or
+
+FoundANewWay::to_call_a_singleton_method
+</pre>
+
+
+<p>Cool!</p>
+</div>
+
+
+
+
+ </article>
+
+
+ <article>
+
+ <header>
+
<h1 class="entry-title"><a href="/2009/10/31/immediate-values.html/">Immediate Values</a></h1>
@@ -528,47 +585,11 @@ <h1 class="entry-title"><a href="/2009/08/17/is-variable-an-object.html/">Is Var
</article>
-
- <article>
-
- <header>
-
- <h1 class="entry-title"><a href="/2009/08/16/hello-world.html/">Hello Ruby World!</a></h1>
-
-
- <p class="meta">
-
-
-
-
-
-
-
-
-
-
-<time datetime="2009-08-16T00:00:00+01:00" pubdate data-updated="true" >Aug 16<span>th</span>, 2009</time>
-
- </p>
-
- </header>
-
-
- <div class="entry-content"><p>I have been reading a lot about Ruby the language and decided that it was about time I blogged my journey.</p>
-
-<p>Hence the blog, Plough Through Ruby.</p>
-
-<p>Have fun!</p>
-</div>
-
-
-
-
- </article>
-
<nav class="pagination">
<div>
+ <a class="prev" href="/blog/page/4/">&larr; Older</a>
+
<a href="/blog/archives">Blog Archives</a>
<a class="next" href="/blog/page/2/">Newer &rarr;</a>
@@ -583,6 +604,10 @@ <h1 class="entry-title"><a href="/2009/08/16/hello-world.html/">Hello Ruby World
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -598,10 +623,6 @@ <h1 class="entry-title"><a href="/2009/08/16/hello-world.html/">Hello Ruby World
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
207 public/blog/page/4/index.html
@@ -0,0 +1,207 @@
+
+<!DOCTYPE html>
+<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
+<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
+<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
+<head>
+ <meta charset="utf-8">
+ <title>Plough => Ruby</title>
+ <meta name="author" content="andHapp">
+
+
+ <meta name="description" content="I have been reading a lot about Ruby the language and decided that it was about time I blogged my journey.Hence the blog, Plough Through Ruby.Have ...">
+
+
+ <!-- http://t.co/dKP3o1e -->
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+
+ <link rel="canonical" href="Plough => Ruby/blog/page/4/index.html">
+ <link href="/favicon.png" rel="icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <script src="/javascripts/modernizr-2.0.js"></script>
+ <script src="/javascripts/ender.js"></script>
+ <script src="/javascripts/octopress.js" type="text/javascript"></script>
+ <link href="/atom.xml" rel="alternate" title="Plough => Ruby" type="application/atom+xml">
+ <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
+<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+
+</head>
+
+<body >
+ <header role="banner"><hgroup>
+ <h1><a href="/">Plough => Ruby</a></h1>
+
+ <h2>Journey through ruby</h2>
+
+</hgroup>
+
+</header>
+ <nav role="navigation"><ul class="subscription" data-subscription="rss">
+ <li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
+
+</ul>
+<form action="http://google.com/search" method="get">
+ <fieldset role="search">
+ <input type="hidden" name="q" value="site:Plough => Ruby" />
+ <input class="search" type="text" name="q" results="0" placeholder="Search"/>
+ </fieldset>
+</form>
+<ul class="main-navigation">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+
+</nav>
+ <div id="main">
+ <div id="content">
+ <div class="blog-index">
+
+
+
+ <article>
+
+ <header>
+
+ <h1 class="entry-title"><a href="/2009/08/16/hello-world.html/">Hello Ruby World!</a></h1>
+
+
+ <p class="meta">
+
+
+
+
+
+
+
+
+
+
+<time datetime="2009-08-16T00:00:00+01:00" pubdate data-updated="true" >Aug 16<span>th</span>, 2009</time>
+
+ </p>
+
+ </header>
+
+
+ <div class="entry-content"><p>I have been reading a lot about Ruby the language and decided that it was about time I blogged my journey.</p>
+
+<p>Hence the blog, Plough Through Ruby.</p>
+
+<p>Have fun!</p>
+</div>
+
+
+
+
+ </article>
+
+ <nav class="pagination">
+ <div>
+
+ <a href="/blog/archives">Blog Archives</a>
+
+ <a class="next" href="/blog/page/3/">Newer &rarr;</a>
+
+ </div>
+ </nav>
+</div>
+<aside class="sidebar">
+
+ <section>
+ <h1>Recent Posts</h1>
+ <ul id="recent_posts">
+
+ <li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
+ <a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
+ </li>
+
+ <li class="post">
+ <a href="/2013/12/30/aspect-oriented-programming.html/">Aspect Oriented Programming</a>
+ </li>
+
+ <li class="post">
+ <a href="/2013/12/01/Mina-the-deployer.html/">Mina, the deployer</a>
+ </li>
+
+ <li class="post">
+ <a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
+ </li>
+
+ </ul>
+</section>
+
+
+
+
+
+</aside>
+
+ </div>
+ </div>
+ <footer role="contentinfo"><p>
+ Copyright &copy; 2014 - andHapp -
+ <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
+</p>
+
+</footer>
+
+
+
+<div id="fb-root"></div>
+<script>(function(d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) {return;}
+ js = d.createElement(s); js.id = id;
+ js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
+ fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));</script>
+
+
+ <script type="text/javascript">
+ (function() {
+ var script = document.createElement('script'); script.type = 'text/javascript'; script.async = true;
+ script.src = 'https://apis.google.com/js/plusone.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(script, s);
+ })();
+ </script>
+
+
+
+ <script type="text/javascript">
+ (function(){
+ var twitterWidgets = document.createElement('script');
+ twitterWidgets.type = 'text/javascript';
+ twitterWidgets.async = true;
+ twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
+ document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
+ })();
+ </script>
+
+
+
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-7379349-5']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+
+
+
+
+
+</body>
+</html>
View
97 public/index.html
@@ -9,7 +9,7 @@
<meta name="author" content="andHapp">
- <meta name="description" content="With Ruby 2.1.0, one can easily trace the original exception.Previously, on rescuing an exception one would have no reference to the original excep...">
+ <meta name="description" content="Do you know what $! means in Ruby?Years ago, I was discussing some issue regarding GemCutter (now that makesit ancient in programming age), and we ...">
<!-- http://t.co/dKP3o1e -->
@@ -66,6 +66,54 @@
<header>
+ <h1 class="entry-title"><a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic Global Variables in Ruby</a></h1>
+
+
+ <p class="meta">
+
+
+
+
+
+
+
+
+
+
+<time datetime="2014-01-07T00:00:00+00:00" pubdate data-updated="true" >Jan 7<span>th</span>, 2014</time>
+
+ </p>
+
+ </header>
+
+
+ <div class="entry-content"><p>Do you know what $! means in Ruby?</p>
+
+<p>Years ago, I was discussing some issue regarding GemCutter (now that makes
+it ancient in programming age), and we were talking about global
+variables in Ruby, for example, $; and $/. At the time, we couldn&#8217;t
+really find a place to look them up, even Google <a href="https://www.google.co.uk/search?q=%24!+Ruby&amp;oq=%24!+Ruby&amp;aqs=chrome..69i57.2487j0j7&amp;sourceid=chrome&amp;espv=210&amp;es_sm=91&amp;ie=UTF-8">isn&#8217;t very effective</a> given
+the nature of the query.</p>
+
+<p>Anyways, while looking through Ruby&#8217;s standard library, I found the file
+<a href="http://ruby-doc.org/stdlib-2.1.0/libdoc/English/rdoc/English.html">English.rb</a>.
+This library has English names for all the cryptic global variables. For
+example: $ERROR_INFO represents $!.</p>
+
+<p>If you ever have to look up the English names, which I suggest you do as
+it makes code easier to read, just refer to that file.</p>
+</div>
+
+
+
+
+ </article>
+
+
+ <article>
+
+ <header>
+
<h1 class="entry-title"><a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested Exceptions in Ruby 2.1.0</a></h1>
@@ -175,8 +223,7 @@ <h1 class="entry-title"><a href="/2013/12/30/aspect-oriented-programming.html/">
</header>
- <div class="entry-content"><p>I was looking into Ruby&#8217;s <a href="http://www.ruby-doc.org/core-2.0.0/TracePoint.html">TracePoint</a>
-class recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint was
+ <div class="entry-content"><p>I was looking into Ruby&#8217;s <a href="http://www.ruby-doc.org/core-2.0.0/TracePoint.html">TracePoint</a> class recently. TracePoint is an objectified Kernel#set_trace_func method. TracePoint was
added in Ruby2, but before that there was a gem that had same function as TracePoint
class. Surprisingly, it was also called <a href="https://github.com/rubyunworks/tracepoint">tracepoint</a>.</p>
@@ -764,42 +811,6 @@ <h1 class="entry-title"><a href="/2011/04/17/an-interesting-ruby-method.html/">A
</article>
-
- <article>
-
- <header>
-
- <h1 class="entry-title"><a href="/2011/03/12/ruby-hacking-guide-chapter-1.html/">Ruby Hacking Guide - Chapter 1</a></h1>
-
-
- <p class="meta">
-
-
-
-
-
-
-
-
-
-
-<time datetime="2011-03-12T00:00:00+00:00" pubdate data-updated="true" >Mar 12<span>th</span>, 2011</time>
-
- </p>
-
- </header>
-
-
- <div class="entry-content"><p>I have completed proof-reading and testing the code from old Ruby Hacking Guide and re-releases in the wild again. It still needs some styling work but I will hopefully find time to sort that out this week.</p>
-
-<p>In the meantime, have a <a href="http://rubyhacking.andhapp.co.uk/2011/01/30/chapter-1.html">read through</a> and see if you spot any mistakes.</p>
-</div>
-
-
-
-
- </article>
-
<nav class="pagination">
<div>
@@ -817,6 +828,10 @@ <h1 class="entry-title"><a href="/2011/03/12/ruby-hacking-guide-chapter-1.html/"
<ul id="recent_posts">
<li class="post">
+ <a href="/2014/01/07/cryptic-global-variables-in-ruby.html/">Cryptic global variables in Ruby</a>
+ </li>
+
+ <li class="post">
<a href="/2014/01/06/nested-exception-in-ruby-2.1.0.html/">Nested exceptions in Ruby 2.1.0</a>
</li>
@@ -832,10 +847,6 @@ <h1 class="entry-title"><a href="/2011/03/12/ruby-hacking-guide-chapter-1.html/"
<a href="/2013/04/10/dtrace-probes-in-ruby-2.html/">DTrace probes in Ruby 2 and a startling discovery</a>
</li>
- <li class="post">
- <a href="/2013/04/08/openstruct-to-hash.html/">OpenStruct to hash</a>
- </li>
-
</ul>
</section>
View
10 public/sitemap.xml
@@ -120,18 +120,22 @@
</url>
<url>
<loc>Plough =&gt; Ruby/2013/12/30/aspect-oriented-programming.html/</loc>
- <lastmod>2013-12-30T12:02:59+00:00</lastmod>
+ <lastmod>2014-01-06T22:23:53+00:00</lastmod>
</url>
<url>
<loc>Plough =&gt; Ruby/2014/01/06/nested-exception-in-ruby-2.1.0.html/</loc>
<lastmod>2014-01-06T22:22:38+00:00</lastmod>
</url>
<url>
+ <loc>Plough =&gt; Ruby/2014/01/07/cryptic-global-variables-in-ruby.html/</loc>
+ <lastmod>2014-01-07T23:42:49+00:00</lastmod>
+ </url>
+ <url>
<loc>Plough =&gt; Ruby/blog/archives/</loc>
- <lastmod>2014-01-06T22:22:38+00:00</lastmod>
+ <lastmod>2014-01-07T23:42:49+00:00</lastmod>
</url>
<url>
<loc>Plough =&gt; Ruby/</loc>
- <lastmod>2014-01-06T22:22:38+00:00</lastmod>
+ <lastmod>2014-01-07T23:42:49+00:00</lastmod>
</url>
</urlset>
View
21 source/_posts/2014-01-07-cryptic-global-variables-in-ruby.markdown
@@ -0,0 +1,21 @@
+---
+layout: post
+title: Cryptic global variables in Ruby
+date_string: 07 January 2014
+---
+
+Do you know what $! means in Ruby?
+
+Years ago, I was discussing some issue regarding GemCutter (now that makes
+it ancient in programming age), and we were talking about global
+variables in Ruby, for example, $; and $/. At the time, we couldn't
+really find a place to look them up, even Google [isn't very effective](https://www.google.co.uk/search?q=%24!+Ruby&oq=%24!+Ruby&aqs=chrome..69i57.2487j0j7&sourceid=chrome&espv=210&es_sm=91&ie=UTF-8) given
+the nature of the query.
+
+Anyways, while looking through Ruby's standard library, I found the file
+[English.rb](http://ruby-doc.org/stdlib-2.1.0/libdoc/English/rdoc/English.html).
+This library has English names for all the cryptic global variables. For
+example: $ERROR_INFO represents $!.
+
+If you ever have to look up the English names, which I suggest you do as
+it makes code easier to read, just refer to that file.
Please sign in to comment.
Something went wrong with that request. Please try again.