Method: Odds#initialize

Defined in:
lib/odds/odds.rb

#initialize(arg) ⇒ Odds

Returns a new instance of Odds.



5
6
7
8
9
10
11
# File 'lib/odds/odds.rb', line 5

def initialize(arg)
  if arg.kind_of?(Hash)
    from_hash(arg)
  else
    self.win_chance = arg
  end
end