# File lib/innate/dynamap.rb, line 26 26: def at(location) 27: @originals[location] 28: end
# File lib/innate/dynamap.rb, line 38 38: def call(env) 39: raise "Nothing mapped yet" if @originals.empty? 40: super 41: end
# File lib/innate/dynamap.rb, line 21 21: def delete(location) 22: @originals.delete(location) 23: remap(@originals) 24: end
# File lib/innate/dynamap.rb, line 16 16: def map(location, object) 17: return unless location and object 18: remap(@originals.merge(location.to_s => object)) 19: end
super may raise when given invalid locations, so we only replace the `@originals` if we are sure the new map is valid
# File lib/innate/dynamap.rb, line 10 10: def remap(map) 11: value = super 12: @originals = map 13: value 14: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.