Sha256: 110dfbc5b4ccb666cfd8a0c9ab0458112724a1c118739c0e7df021c537cbf140
Contents?: true
Size: 394 Bytes
Versions: 6
Compression:
Stored size: 394 Bytes
Contents
module Shoulda module Context class << self def contexts # :nodoc: @contexts ||= [] end attr_writer :contexts def current_context # :nodoc: self.contexts.last end def add_context(context) # :nodoc: self.contexts.push(context) end def remove_context # :nodoc: self.contexts.pop end end end end
Version data entries
6 entries across 6 versions & 1 rubygems