Method: EmailDoc::Document#render

Defined in:
lib/email_doc/document.rb

#renderObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/email_doc/document.rb', line 19

def render
  ERB.new(<<-MD_END).result(binding)
# #{described_class}

## #{ex.description}

```
From: #{from}
 Subject: #{subject}
  To: #{to}
Reply to: #{reply_to}
```

```
#{body.encoded}
```
MD_END
end