require "messagebox/version" require 'Win32API' class MessageBox def self.show(title, message, opt_value) Win32API.new( "user32", "MessageBox", %w(p p p i), 'i' ).call(nil, message, title, opt_value) end end