Module: Plain

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

.runObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/example.rb', line 7

def self.run
  puts "########## running ##########"

  pd hello: "world"
  puts

  r = pd hello: "world" do
    42
  end
  puts r
  puts

  pdfm __FILE__, __method__, hello: "world"
  puts

  r = pdfm __FILE__, __method__, hello: "world" do
    42
  end
  puts r
  puts

  pd hello: "world" do
    1 / 0
  end rescue
  puts

  pdfm __FILE__, __method__, hello: "world" do
    1 / 0
  end rescue
  puts
end