Module: Voicemeeter::Conversions
- Included in:
- MacroButton_Meta_Functions, Meta_Functions
- Defined in:
- lib/voicemeeter/meta.rb
Class Method Summary collapse
Class Method Details
.Boolean(value) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/voicemeeter/meta.rb', line 7 def Boolean(value) case value when true, 1 true when false, nil, 0 false else raise ArgumentError, "invalid value for Boolean(): \"#{value.inspect}\"" end end |