Module: Dice

Defined in:
lib/dice.rb,
lib/dice/parser.rb,
lib/dice/roller.rb,
lib/dice/version.rb

Defined Under Namespace

Classes: Parser, Roller

Constant Summary collapse

VERSION =
'0.0.1'.freeze

Class Method Summary collapse

Class Method Details

.parse(args) ⇒ Object



5
6
7
8
9
# File 'lib/dice.rb', line 5

def self.parse(args)
  parser = Parser.new(args)
  parser.call
  @options = parser.options
end

.runObject



11
12
13
14
# File 'lib/dice.rb', line 11

def self.run
  roller = Roller.new(@options)
  roller.call
end