Sha256: 668ae91a51cdbe89e7b8eb4f9eb401c623dac50781b6995f52c334e4b7a97a98
Contents?: true
Size: 677 Bytes
Versions: 6
Compression:
Stored size: 677 Bytes
Contents
#--- # Excerpted from "Scripted GUI Testing With Ruby", # published by The Pragmatic Bookshelf. # Copyrights apply to this code. It may not be used to create training material, # courses, books, articles, and the like. Contact us if you are in doubt. # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/idgtr for more book information. #--- class Note @@app = nil #(1) @@titles = {} #(2) def self.open @@app.new end end class Note def exit! close @prompted = dialog(@@titles[:save]) do |d| #(3) d.click '_No' end end def has_prompted? @prompted end end
Version data entries
6 entries across 6 versions & 1 rubygems