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