Module: NewEvent
- Extended by:
- Press
- Defined in:
- lib/example.rb
Class Method Summary collapse
Methods included from Press
cpd, cpdfm, ctx, mctx, mpd, mpde, mpdfm, mpdfme, mtx, pd, pde, pdfm, pdfme, spd, spdfm, xpd, xpde, xpdfm, xpdfme
Class Method Details
.run ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/example.rb', line 129 def self.run puts "########## running ##########" xpdfm __FILE__, __method__, hello: "world" # cpd hello: "world", event: "sunset" # puts # spd hello: "world", event: "sunset", val: 10 # puts r = xpd hello: "world", event: "sunset" do 42 end puts r puts # cpdfm __FILE__, __method__, hello: "world", event: "sunset" # puts r = xpdfm __FILE__, __method__, hello: "world", event: "sunset" do 42 end puts r puts begin 1 / 0 rescue => e xpde e, hello: "world" xpde e, hello: "world", event: "sunset" xpdfme __FILE__, __method__, e, hello: "world" xpdfme __FILE__, __method__, e, hello: "world", event: "sunset" end puts xpd hello: "world", event: "sunset" do 1 / 0 end rescue puts xpdfm __FILE__, __method__, hello: "world", event: "sunset" do 1 / 0 end rescue puts end |