Module: Objection::Awoken::ClassMethods
- Defined in:
- lib/motion-objection/awoken.rb
Instance Attribute Summary collapse
-
#_incantations ⇒ Object
readonly
Returns the value of attribute _incantations.
Instance Method Summary collapse
Instance Attribute Details
#_incantations ⇒ Object (readonly)
Returns the value of attribute _incantations.
20 21 22 |
# File 'lib/motion-objection/awoken.rb', line 20 def _incantations @_incantations end |
Instance Method Details
#awoken(&block) ⇒ Object
21 22 23 24 |
# File 'lib/motion-objection/awoken.rb', line 21 def awoken(&block) @_incantations ||= [] @_incantations << block end |