Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updating phiggy bit

  • Loading branch information...
commit 721f5af4cdf1f441411b8c2e92f4c428c3ca3bea 1 parent 36c5d9b
@steveklabnik authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 posts/2012-09-09-random-ruby-tricks--class-new.md
View
5 posts/2012-09-09-random-ruby-tricks--class-new.md
@@ -77,10 +77,7 @@ bar
The block gets `class_eval`'d. I haven't found a good use for this one,
exactly, but it's good to know about!
-EDIT: @pete_higgins has chimed in on Twitter. I knew I'd done this before:
-
-<blockquote class="twitter-tweet" data-in-reply-to="244902236185047041"><p>@<a href="https://twitter.com/steveklabnik">steveklabnik</a> Class.new with a block is useful for creating anonymous classes in tests, or as a simple mock mechanism.</p>&mdash; pete higgins (@pete_higgins) <a href="https://twitter.com/pete_higgins/status/244903490588119040" data-datetime="2012-09-09T21:01:56+00:00">September 9, 2012</a></blockquote>
-<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
+EDIT: <a href='https://twitter.com/pete_higgins/status/244903490588119040'>@pete_higgins has chimed in on Twitter.</a> I knew I'd done this before!
## `new` vs `initialize`
Please sign in to comment.
Something went wrong with that request. Please try again.