Class: Courrier::Email::Layouts
- Inherits:
-
Object
- Object
- Courrier::Email::Layouts
- Defined in:
- lib/courrier/email/layouts.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(email) ⇒ Layouts
constructor
A new instance of Layouts.
Constructor Details
#initialize(email) ⇒ Layouts
Returns a new instance of Layouts.
6 7 8 |
# File 'lib/courrier/email/layouts.rb', line 6 def initialize(email) @email = email end |
Instance Method Details
#build ⇒ Object
10 11 12 13 14 |
# File 'lib/courrier/email/layouts.rb', line 10 def build return [] if no_layouts? [layouts] end |