Class: Premailer::Rails::Hook
- Inherits:
-
Object
- Object
- Premailer::Rails::Hook
- Defined in:
- lib/premailer/rails/hook.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message) ⇒ Hook
constructor
A new instance of Hook.
- #perform ⇒ Object
Constructor Details
#initialize(message) ⇒ Hook
Returns a new instance of Hook.
16 17 18 |
# File 'lib/premailer/rails/hook.rb', line 16 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/premailer/rails/hook.rb', line 4 def @message end |
Class Method Details
.delivering_email ⇒ Object
12 13 14 15 |
# File 'lib/premailer/rails/hook.rb', line 12 def perform() new().perform end |
.perform(message) ⇒ Object
7 8 9 10 |
# File 'lib/premailer/rails/hook.rb', line 7 def perform() new().perform end |
.previewing_email ⇒ Object
13 14 15 16 |
# File 'lib/premailer/rails/hook.rb', line 13 def perform() new().perform end |
Instance Method Details
#perform ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/premailer/rails/hook.rb', line 20 def perform if skip_premailer_header_present? remove_skip_premailer_header elsif replace_html_part(generate_html_part_replacement) end end |