Method: BCDice::Result#initialize

Defined in:
lib/bcdice/result.rb

#initialize(text = nil) ⇒ Result

Returns a new instance of Result.

Parameters:

  • text (String | nil) (defaults to: nil)


67
68
69
70
71
72
73
74
75
76
# File 'lib/bcdice/result.rb', line 67

def initialize(text = nil)
  @text = text
  @rands = nil
  @detailed_rands = nil
  @secret = false
  @success = false
  @failure = false
  @critical = false
  @fumble = false
end