Sha256: cf42f415efa94bd7224d5a646489395863f94b778ccc04b7c6657822a4526f91
Contents?: true
Size: 578 Bytes
Versions: 21
Compression:
Stored size: 578 Bytes
Contents
module ProconBypassMan class ButtonsSettingConfiguration module ParamNormalizer class IfPressed attr_reader :value def initialize(value) @value = value end def to_value! case value when Integer, TrueClass, FalseClass, NilClass raise UnSupportValueError when Symbol, String return [value.to_sym] when Array return value.map(&:to_sym).uniq else raise UnexpectedValueError end end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
procon_bypass_man-0.1.22 | lib/procon_bypass_man/buttons_setting_configuration/param_normalizer/if_pressed.rb |