Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
akicho8 committed Apr 29, 2015
1 parent 805f6ff commit ebef37d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

* LotteryBox

: require "lottery_box"
:
: box = [
: {:robj => "S", :rate => 0.1},
: {:robj => "R", :rate => 0.2},
: {:robj => "N"},
: ]
: LotteryBox.pick(box) # => "N"
#+BEGIN_SRC ruby
require "lottery_box"

box = [
{:robj => "S", :rate => 0.1},
{:robj => "R", :rate => 0.2},
{:robj => "N"},
]
LotteryBox.pick(box) # => "N"
#+END_SRC

0 comments on commit ebef37d

Please sign in to comment.