lib/surrounded.rb in surrounded-0.8.2 vs lib/surrounded.rb in surrounded-0.8.3
- old
+ new
@@ -14,16 +14,18 @@
def store_context(ctxt, &block)
accessor = block.binding.eval('self')
if accessor.role_player?(self)
surroundings.unshift(ctxt)
end
+ self
end
def remove_context(&block)
accessor = block.binding.eval('self')
if accessor.role_player?(self)
surroundings.shift
end
+ self
end
def surroundings
@__surroundings__ ||= []
end