Skip to content

Instantly share code, notes, and snippets.

@azizshamim
Created June 30, 2014 18:17
Show Gist options
  • Select an option

  • Save azizshamim/eb68f7e675f3de5b901f to your computer and use it in GitHub Desktop.

Select an option

Save azizshamim/eb68f7e675f3de5b901f to your computer and use it in GitHub Desktop.

Revisions

  1. azizshamim created this gist Jun 30, 2014.
    12 changes: 12 additions & 0 deletions ruby_and_wat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    irb(main):001:0> f = 5
    => 5
    irb(main):002:0> f
    => 5
    irb(main):003:0> f = 5 and f / 5
    => 1
    irb(main):004:0> f
    => 5
    irb(main):005:0> f = 5 && f / 5
    => 1
    irb(main):006:0> f
    => 1