Module: Roglew::ContextualModule
- Includes:
- ClassMethods
- Defined in:
- lib/roglew/contextual.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Methods included from ClassMethods
Class Method Details
.included(c) ⇒ Object
15 16 17 |
# File 'lib/roglew/contextual.rb', line 15 def self.included(c) c.extend ClassMethods end |
Instance Method Details
#is_deferred?(deferred) ⇒ Boolean
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/roglew/contextual.rb', line 19 def is_deferred?(deferred) [ deferred, self.deferred?, self.class.respond_to?(:deferred?) && self.class.deferred?, @context.respond_to?(:deferred?) && @context.deferred?, @context.class.respond_to?(:deferred?) && @context.class.deferred?, false ].compact.first end |