Class: Drupal::PostHook
- Inherits:
-
Object
- Object
- Drupal::PostHook
- Defined in:
- lib/drupal.rb
Instance Attribute Summary collapse
-
#cls ⇒ Object
Returns the value of attribute cls.
-
#proc ⇒ Object
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(cls, proc) ⇒ PostHook
constructor
A new instance of PostHook.
- #load ⇒ Object
Constructor Details
#initialize(cls, proc) ⇒ PostHook
Returns a new instance of PostHook.
22 23 24 25 |
# File 'lib/drupal.rb', line 22 def initialize cls, proc self.cls = cls self.proc = proc end |
Instance Attribute Details
#cls ⇒ Object
Returns the value of attribute cls.
16 17 18 |
# File 'lib/drupal.rb', line 16 def cls @cls end |
#proc ⇒ Object
Returns the value of attribute proc.
16 17 18 |
# File 'lib/drupal.rb', line 16 def proc @proc end |
Instance Method Details
#load ⇒ Object
18 19 20 |
# File 'lib/drupal.rb', line 18 def load cls.class_eval &proc end |