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.
10 11 12 |
# File 'lib/premailer/rails/hook.rb', line 10 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(message) ⇒ Object
6 7 8 |
# File 'lib/premailer/rails/hook.rb', line 6 def self.delivering_email() self.new().perform end |
Instance Method Details
#perform ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/premailer/rails/hook.rb', line 14 def perform if replace_html_part(generate_html_part_replacement) end end |