Module: RbSDL2::MessageBox::MessageBoxFlags
- Defined in:
- lib/rb_sdl2/message_box.rb
Class Method Summary collapse
Class Method Details
.to_num(obj) ⇒ Object
54 55 56 57 58 59 60 61 62 63 |
# File 'lib/rb_sdl2/message_box.rb', line 54 def to_num(obj) case obj when /\Aerror/ then ::SDL2::SDL_MESSAGEBOX_ERROR when /\Ainfo/ then ::SDL2::SDL_MESSAGEBOX_INFORMATION when /\Awarn/ then ::SDL2::SDL_MESSAGEBOX_WARNING when nil then 0 else raise ArgumentError end end |