lib/utopia/controller/variables.rb
# We use self as a seninel
We use self as a seninel
We use self as a seninel
def fetch(key, default=self)
				if controller = self.top
					if controller.instance_variables.include?(key)
						return controller.instance_variable_get(key)
					end
				end
				if block_given?
					yield(key)
				elsif !default.equal?(self)
					return default
				else
					raise KeyError.new(key)
				end
			end
def fetch ( key , default = self ) if controller = self . top if controller . instance_variables . include? ( key ) return controller . instance_variable_get ( key ) end end if block_given? yield ( key ) elsif ! default . equal? ( self ) return default else raise KeyError . new ( key ) end end
We use self as a seninel
We use self as a seninel
key
default