lib/bridge/bid.rb in bridge-0.1.4 vs lib/bridge/bid.rb in bridge-0.2.0
- old
+ new
@@ -10,10 +10,10 @@
raise ArgumentError, "invalid bid: #{bid}" unless Bridge.bid?(@bid)
end
# Returns the level of the bid
def level
- bid[0..0] if contract?
+ bid[0] if contract?
end
# Returns the suit of the bid
def suit
bid[1..-1] if contract?