Module: Remarkable::DSL::Callbacks
- Defined in:
- lib/remarkable/dsl/callbacks.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
:nodoc:
5 6 7 |
# File 'lib/remarkable/dsl/callbacks.rb', line 5 def self.included(base) #:nodoc: base.extend ClassMethods end |
Instance Method Details
#run_after_initialize_callbacks ⇒ Object
:nodoc:
50 51 52 53 54 55 56 57 58 |
# File 'lib/remarkable/dsl/callbacks.rb', line 50 def run_after_initialize_callbacks #:nodoc: self.class.after_initialize_callbacks.each do |method| if method.is_a?(Proc) instance_eval &method elsif method.is_a?(Symbol) send(method) end end end |
#run_before_assert_callbacks ⇒ Object
:nodoc:
60 61 62 63 64 65 66 67 68 |
# File 'lib/remarkable/dsl/callbacks.rb', line 60 def run_before_assert_callbacks #:nodoc: self.class.before_assert_callbacks.each do |method| if method.is_a?(Proc) instance_eval &method elsif method.is_a?(Symbol) send(method) end end end |