Sha256: 21507f9123a047d61f89095b200c3e8665722487df4157d937e6125f1cc25f99
Contents?: true
Size: 674 Bytes
Versions: 21
Compression:
Stored size: 674 Bytes
Contents
module ProconBypassMan class ButtonsSettingConfiguration module ParamNormalizer class ForceNeutral attr_reader :force_neutral def initialize(force_neutral) @force_neutral = force_neutral end def to_value! case force_neutral when Integer, TrueClass raise UnSupportValueError when Symbol, String return [force_neutral.to_sym] when Array return force_neutral.map(&:to_sym).uniq when FalseClass, NilClass return nil else raise UnexpectedValueError end end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems