Class: BCDice::CommonCommand::TallyDice::Node::Notation
- Inherits:
-
Object
- Object
- BCDice::CommonCommand::TallyDice::Node::Notation
- Defined in:
- lib/bcdice/common_command/tally_dice/node.rb
Overview
個数カウントダイス:ダイス表記のノード
Instance Attribute Summary collapse
-
#show_zeros ⇒ Boolean
readonly
個数0を表示するか.
-
#sides ⇒ Integer
readonly
面数.
-
#times ⇒ Integer
readonly
振る回数.
Instance Method Summary collapse
-
#initialize(times:, sides:, show_zeros:) ⇒ Notation
constructor
A new instance of Notation.
- #to_dice(round_type) ⇒ Dice
Constructor Details
#initialize(times:, sides:, show_zeros:) ⇒ Notation
Returns a new instance of Notation.
79 80 81 82 83 |
# File 'lib/bcdice/common_command/tally_dice/node.rb', line 79 def initialize(times:, sides:, show_zeros:) @times = times @sides = sides @show_zeros = show_zeros end |
Instance Attribute Details
#show_zeros ⇒ Boolean (readonly)
Returns 個数0を表示するか.
74 75 76 |
# File 'lib/bcdice/common_command/tally_dice/node.rb', line 74 def show_zeros @show_zeros end |
#sides ⇒ Integer (readonly)
Returns 面数.
72 73 74 |
# File 'lib/bcdice/common_command/tally_dice/node.rb', line 72 def sides @sides end |
#times ⇒ Integer (readonly)
Returns 振る回数.
70 71 72 |
# File 'lib/bcdice/common_command/tally_dice/node.rb', line 70 def times @times end |