class BCDice::GameSystem::FilledWith::Difficulty

Constants

DIFFICULTYS
NAMES

Public Class Methods

new(sign) click to toggle source
# File lib/bcdice/game_system/FilledWith.rb, line 237
def initialize(sign)
  @sign = sign
end

Public Instance Methods

index() click to toggle source
# File lib/bcdice/game_system/FilledWith.rb, line 241
def index
  @index ||= DIFFICULTYS.find_index(@sign)
end
name() click to toggle source
# File lib/bcdice/game_system/FilledWith.rb, line 245
def name
  @name ||= NAMES[@sign]
end