Class: ActsAsNewsletter::Config
- Inherits:
-
Object
- Object
- ActsAsNewsletter::Config
- Defined in:
- lib/acts_as_newsletter.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
- #method_missing(method, *args, &block) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
12 13 14 |
# File 'lib/acts_as_newsletter.rb', line 12 def initialize &block block.call(self) if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/acts_as_newsletter.rb', line 16 def method_missing method, *args, &block if ActsAsNewsletter.respond_to?(method) ActsAsNewsletter.send(method, *args, &block) else super method, *args, &block end end |