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