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.
11 12 13 |
# File 'lib/premailer/rails/hook.rb', line 11 def initialize() = 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 end |
Class Method Details
.delivering_email(message) ⇒ Object
6 7 8 9 |
# File 'lib/premailer/rails/hook.rb', line 6 def self.delivering_email() self.new().perform end |
Instance Method Details
#perform ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/premailer/rails/hook.rb', line 15 def perform if skip_premailer_header_present? remove_skip_premailer_header elsif replace_html_part(generate_html_part_replacement) end end |