Module: Measure
- 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
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/example.rb', line 43 def self.run puts "########## running ##########" cpd hello: "world" r = mpd hello: "world" do 42 end puts r puts cpdfm __FILE__, __method__, hello: "world" r = mpdfm __FILE__, __method__, hello: "world" do 42 end puts r puts begin 1 / 0 rescue => e cpde e, hello: "world" cpdfme __FILE__, __method__, e, hello: "world" end puts mpd hello: "world" do 1 / 0 end rescue puts mpdfm __FILE__, __method__, hello: "world" do 1 / 0 end rescue puts end |