Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/contextualize/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#context_scope(*names) {|_self| ... } ⇒ Object
2 3 4 5 6 |
# File 'lib/contextualize/core_ext.rb', line 2 def context_scope *names, &block self.add_contexts *names yield self if block self.remove_contexts *names end |