Permalink
Browse files

added methods

  • Loading branch information...
craigmartin committed Apr 17, 2012
1 parent d63151a commit 83459757098fb8a5bcf6274b10741c0c0aaadf89
Showing with 12 additions and 0 deletions.
  1. +12 −0 ruby/methods.md
View
@@ -0,0 +1,12 @@
+# Tricks with Methods
+
+## open? method
+
+expressions: opens_at and closes_at
+
+<pre><code>def open?
+ Time.now.between? opens_at, closes_at
+end
+</code></pre>
+
+kudos = Dan Croak (Robots Smashing)

0 comments on commit 8345975

Please sign in to comment.