lib/games_dice/parser.rb in games_dice-0.3.6 vs lib/games_dice/parser.rb in games_dice-0.3.7

- old
+ new

@@ -66,10 +66,10 @@ rule(:dice_expression) { add_bunch | add_constant } rule(:expressions) { dice_expression.repeat.as(:bunches) } root :expressions # Parses a string description in the dice mini-language, and returns data for feeding into - # GamesDice::Dice constructore. + # GamesDice::Dice constructor. # @param [String] dice_description Text to parse e.g. '1d6' # @return [Hash] Analysis of dice_description def parse dice_description dice_description = dice_description.to_s.strip # Force first item to start '+' for simpler parse rules