Sha256: 9fa5800a97372537437d052ec4bb5236581dc6384fb863aaf8dc638b339d528a
Contents?: true
Size: 421 Bytes
Versions: 17
Compression:
Stored size: 421 Bytes
Contents
# Some template bindings share the controller with other template bindings based # on a name. This class stores those and provides helper methods to clear/set/get. class GroupedControllers @@controllers = {} def initialize(name) @name = name end def get @@controllers[@name] end def set(controller) @@controllers[@name] = controller end def clear @@controllers.delete(@name) end end
Version data entries
17 entries across 17 versions & 1 rubygems