Class: Object

Inherits:
BasicObject
Defined in:
lib/contextualize/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#icontext_scope(*names) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



6
7
8
9
10
# File 'lib/contextualize/core_ext.rb', line 6

def icontext_scope *names, &block
  self.add_icontexts *names
  yield self if block
  self.remove_icontexts *names
end

#own_methodsObject



2
3
4
# File 'lib/contextualize/core_ext.rb', line 2

def own_methods
  methods - Object.methods
end